Skip to content

Commit

Permalink
Patch to fix reading thumbnail from exif profile.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Oct 3, 2024
1 parent 3e75a77 commit e71b4b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coders/thumbnail.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,11 @@ static MagickBooleanType WriteTHUMBNAILImage(const ImageInfo *image_info,
profile=GetImageProfile(image,"exif");
if (profile == (const StringInfo *) NULL)
ThrowWriterException(CoderError,"ImageDoesNotHaveAThumbnail");
property=GetImageProperty(image,"exif:JPEGInterchangeFormat");
property=GetImageProperty(image,"exif:thumbnail:JPEGInterchangeFormat");
if (property == (const char *) NULL)
ThrowWriterException(CoderError,"ImageDoesNotHaveAThumbnail");
offset=(ssize_t) StringToLong(property);
property=GetImageProperty(image,"exif:JPEGInterchangeFormatLength");
property=GetImageProperty(image,"exif:thumbnail:JPEGInterchangeFormatLength");
if (property == (const char *) NULL)
ThrowWriterException(CoderError,"ImageDoesNotHaveAThumbnail");
length=(size_t) StringToLong(property);
Expand Down

0 comments on commit e71b4b8

Please sign in to comment.