ExifTool Forum

ExifTool => Newbies => Topic started by: Xyzzy on March 02, 2015, 07:33:16 AM

Title: Minimize XMP padding
Post by: Xyzzy on March 02, 2015, 07:33:16 AM
Hi

I have noticed that exiftools adds significant (1kB+) padding when fe I delete some elements from XMP. Is there a way to avoid/minimise it?
Title: Re: Minimize XMP padding
Post by: Phil Harvey on March 02, 2015, 07:44:00 AM
You can avoid this padding with the -z option:

       -z (-zip)
            When reading, causes information to be extracted from .gz and .bz2
            compressed images.  (Only one image per archive.  Requires gzip
            and bzip2 to be installed on the system.)  When writing, causes
            compressed information to be written if supported by the image
            format.  (eg. The PNG format supports compressed text.)  This
            option also disables the recommended padding in embedded XMP,
            saving 2424 bytes when writing XMP in a file.

- Phil