From a94a88dd623533c6f9ca9ce6adcb29569d9a2258 Mon Sep 17 00:00:00 2001 From: skal Date: Wed, 5 Jun 2013 10:07:48 +0200 Subject: [PATCH] fix EXIF parsing in PNG 'exiftool' puts an 'APP1' chunk for exif, e.g.: https://metacpan.org/source/EXIFTOOL/Image-ExifTool-5.87/lib/Image/ExifTool/PNG.pm#L305 Change-Id: I313d3e6945898526b8a4baf3d9016a2591a1a817 (cherry picked from commit bec11092ca9c32d8f447b9313502963d000e0962) --- examples/pngdec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/pngdec.c b/examples/pngdec.c index 78353560..ff9311c7 100644 --- a/examples/pngdec.c +++ b/examples/pngdec.c @@ -108,6 +108,8 @@ static const struct { // See also: ExifTool on CPAN. { "Raw profile type exif", ProcessRawProfile, METADATA_OFFSET(exif) }, { "Raw profile type xmp", ProcessRawProfile, METADATA_OFFSET(xmp) }, + // Exiftool puts exif data in APP1 chunk, too. + { "Raw profile type APP1", ProcessRawProfile, METADATA_OFFSET(exif) }, // XMP Specification Part 3, Section 3 #PNG { "XML:com.adobe.xmp", MetadataCopy, METADATA_OFFSET(xmp) }, { NULL, NULL, 0 },