ImageMagick/survive-exif.patch

21 lines
827 B
Diff

--- ImageMagick-6.6.7-8/magick/property.c.orig 2010-12-24 14:44:32.000000000 +0100
+++ ImageMagick-6.6.7-8/magick/property.c 2011-02-21 15:09:40.008402000 +0100
@@ -2012,9 +2012,14 @@ MagickExport const char *GetImagePropert
{
if (GetEXIFProperty(image,property) != MagickFalse)
{
- p=(const char *) GetValueFromSplayTree((SplayTreeInfo *)
- image->properties,property);
- return(p);
+ // FIXME: GetEXIFProperty should have return MagickFalse, if it failed, no?
+ // I see here a false positive of exif:Orientation, which exiftool does not see.
+ if (image->properties)
+ {
+ p=(const char *) GetValueFromSplayTree((SplayTreeInfo *)
+ image->properties,property);
+ return(p);
+ }
}
}
break;