]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/1445
authorCristy <urban-warrior@imagemagick.org>
Wed, 9 Jan 2019 23:36:47 +0000 (18:36 -0500)
committerCristy <urban-warrior@imagemagick.org>
Wed, 9 Jan 2019 23:36:47 +0000 (18:36 -0500)
MagickCore/constitute.c

index 5f17a458817e33424a1e5d0e5db81d95abb267d6..b4d2f28622dac614ef71cf564a1fbe84950824c2 100644 (file)
@@ -703,9 +703,9 @@ MagickExport Image *ReadImage(const ImageInfo *image_info,
           next->resolution.y=geometry_info.rho+geometry_info.sigma/1000.0;
         (void) DeleteImageProperty(next,"exif:YResolution");
       }
-    value=GetImageProperty(next,"tiff:ResolutionUnit",exception);
+    value=GetImageProperty(next,"exif:ResolutionUnit",exception);
     if (value == (char *) NULL)
-      value=GetImageProperty(next,"exif:ResolutionUnit",exception);
+      value=GetImageProperty(next,"tiff:ResolutionUnit",exception);
     if (value != (char *) NULL)
       {
         option_type=ParseCommandOption(MagickResolutionOptions,MagickFalse,