Compress XMP

Started by den, April 22, 2013, 06:22:31 AM

Previous topic - Next topic

den

Hi,

I'm using Exiftool since a while and it takes me in deeper and deeper ;-) One thing I was wondering about and couldn't find much information is the size of the XMP header generated by exiftool:

Is there a way to make the XMP part in a JPEG smaller? By compressing or by simply remove all the white spaces between the XML tags (especially at the end). Or is this space required?

Thanks for any help!

Phil Harvey

Hi Den,

You can use the -z option to avoid the ~2kB of recommended white space when writing XMP.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

den

I had a while to figure out that the -z option does nothing to XMP in version 8.60. But whit version 9.28 it works. Thanks for the help!

Is there any negative effect whit not having this ~2kB other than slower writing if the XMP has to be updated?

Phil Harvey

There is no real disadvantage.  I disagree with the XMP spec... I would never include this padding if I had my way.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

den

Thank you for the info!