]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Mon, 12 Dec 2016 12:45:16 +0000 (07:45 -0500)
committerCristy <urban-warrior@imagemagick.org>
Mon, 12 Dec 2016 12:45:16 +0000 (07:45 -0500)
MagickCore/compare.c

index 9f7af62db1847c9ff7675666ac38dc38bd7a8812..f6fcf120750ebf2ae422bf490ffd1d336315c4eb 100644 (file)
@@ -195,7 +195,6 @@ MagickExport Image *CompareImages(Image *image,const Image *reconstruct_image,
       difference_image=DestroyImage(difference_image);
       return((Image *) NULL);
     }
-  (void) SetImageMask(highlight_image,ReadPixelMask,(Image *) NULL,exception);
   status=SetImageStorageClass(highlight_image,DirectClass,exception);
   if (status == MagickFalse)
     {
@@ -203,6 +202,7 @@ MagickExport Image *CompareImages(Image *image,const Image *reconstruct_image,
       highlight_image=DestroyImage(highlight_image);
       return((Image *) NULL);
     }
+  (void) SetImageMask(highlight_image,ReadPixelMask,(Image *) NULL,exception);
   (void) SetImageAlphaChannel(highlight_image,OpaqueAlphaChannel,exception);
   (void) QueryColorCompliance("#f1001ecc",AllCompliance,&highlight,exception);
   artifact=GetImageArtifact(image,"compare:highlight-color");