ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: den on April 22, 2013, 06:22:31 AM

Title: Compress XMP
Post by: den on April 22, 2013, 06:22:31 AM
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!
Title: Re: Compress XMP
Post by: Phil Harvey on April 22, 2013, 06:33:51 AM
Hi Den,

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

- Phil
Title: Re: Compress XMP
Post by: den on April 30, 2013, 01:03:00 PM
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?
Title: Re: Compress XMP
Post by: Phil Harvey on April 30, 2013, 08:24:24 PM
There is no real disadvantage.  I disagree with the XMP spec... I would never include this padding if I had my way.

- Phil
Title: Re: Compress XMP
Post by: den on May 01, 2013, 04:01:14 AM
Thank you for the info!