Skip to content

Commit 98cd381

Browse files
authored
avifpng.c: support ImageMagick app1 exif text data (#2700)
ImageMagick 6.9.13-12 uses lowercase app1 in the raw profile string.
1 parent 0f1618a commit 98cd381

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/shared/avifpng.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ static avifBool avifExtractExifAndXMP(png_structp png, png_infop info, avifBool
173173
}
174174
avifRemoveHeader(&xmpApp1Header, &avif->xmp); // Ignore the return value because the header is optional.
175175
*ignoreXMP = AVIF_TRUE; // Ignore any other XMP chunk.
176-
} else if (!strcmp(text->key, "Raw profile type APP1")) {
176+
} else if (!strcmp(text->key, "Raw profile type APP1") || !strcmp(text->key, "Raw profile type app1")) { // ImageMagick uses lowercase app1.
177177
// This can be either Exif, XMP or something else.
178178
avifRWData metadata = { NULL, 0 };
179179
if (!avifCopyRawProfile(text->text, textLength, &metadata)) {

0 commit comments

Comments
 (0)