XMP being lost/corrupted on conversion
Posted: 2009-07-25T09:51:38-07:00
I'm using ImageMagick-6.5.4-5 on Ubuntu 9.04. Build is from source, without-perl.
When I convert a JPEG image with XMP metadata embedded, the XMP seems to get lost or corrupted. Viewing the exif of the converted image using the Exif Viewer v1.45 plugin for Firefox, it gives the following output:
Also, if I view the converted image in Adobe Bridge CS4, the majority of the XMP is missing, though it still has some XMP like the exif and tiff XMP tags. It seems that exiftool can still read all the XMP.
Here's an example you can download and test:
Original image:
Converted image:
I'm converting just using, and also get the same results when converting through the Imagick PHP extension.
Dave
When I convert a JPEG image with XMP metadata embedded, the XMP seems to get lost or corrupted. Viewing the exif of the converted image using the Exif Viewer v1.45 plugin for Firefox, it gives the following output:
and then prints the exif, but doesn't have any XMP.Handling APPx (0xe0) block.
Handling APPx (0xed) block.
Handling APPx (0xe1) block.
Endian = Intel
* * * Parsing the IFD0 data * * *
18 directory entries (tags) found.
* * * Parsing the Exif SubIFD data * * *
38 directory entries (tags) found.
* * * Parsing the IFD1 data * * *
6 directory entries (tags) found.
* * * Parsing the GPS Information IFD data * * *
8 directory entries (tags) found.
Handling APPx (0xe2) block.
Handling APPx (0xe1) block.
Exif string not detected: 0x68 0x74 0x74 0x70 0x3a 0x2f
End of APPx data blocks reached.
Status = -3
Unable to extract some or all of the Exif data.
Also, if I view the converted image in Adobe Bridge CS4, the majority of the XMP is missing, though it still has some XMP like the exif and tiff XMP tags. It seems that exiftool can still read all the XMP.
Here's an example you can download and test:
Original image:
Converted image:
I'm converting just using
Code: Select all
convert "XMPTest.jpg" "-test.jpg"
Dave