From: Cristy Date: Sat, 26 Aug 2017 18:03:14 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.7-0~58 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6f5d9a87a1c02c2d51a53d35ccdbe99d75564a33;p=imagemagick ... --- diff --git a/MagickWand/compare.c b/MagickWand/compare.c index 1640ccc33..5181dbc74 100644 --- a/MagickWand/compare.c +++ b/MagickWand/compare.c @@ -1151,16 +1151,8 @@ WandExport MagickBooleanType CompareImagesCommand(ImageInfo *image_info, exception); else if (similarity_image == (Image *) NULL) - { - if ((metric == PerceptualHashErrorMetric) || - (metric == StructuralSimilarityErrorMetric) || - (metric == StructuralDissimilarityErrorMetric)) - difference_image=CompareImages(image,reconstruct_image,metric, - &distortion,exception); - else - ThrowCompareException(OptionError,"ImageWidthsOrHeightsDiffer", - image->filename); - } + difference_image=CompareImages(image,reconstruct_image,metric,&distortion, + exception); else { Image