]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sat, 18 Jan 2014 15:32:19 +0000 (15:32 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sat, 18 Jan 2014 15:32:19 +0000 (15:32 +0000)
MagickWand/compare.c

index 019a9d4c5d9867d042ec34461edfab338fce5235..b7f71f4d8fce36b46f38a50d2e7c1dbe73616216 100644 (file)
@@ -954,7 +954,8 @@ WandExport MagickBooleanType CompareImagesCommand(ImageInfo *image_info,
     difference_image=CompareImages(image,reconstruct_image,metric,&distortion,
       exception);
   else
-    if (similarity_image == (Image *) NULL)
+    if ((similarity_image == (Image *) NULL) &&
+        (metric != PerceptualHashErrorMetric))
       ThrowCompareException(OptionError,"ImageWidthsOrHeightsDiffer",
         image->filename)
     else