]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sun, 27 Nov 2016 13:44:00 +0000 (08:44 -0500)
committerCristy <urban-warrior@imagemagick.org>
Sun, 27 Nov 2016 13:44:00 +0000 (08:44 -0500)
MagickCore/compare.c

index d3349dbdecf4535985faa1de3f30fdcea9f352fc..e52ee7e8df7488aaff7de05b075c0f17e65a37e3 100644 (file)
@@ -195,6 +195,8 @@ MagickExport Image *CompareImages(Image *image,const Image *reconstruct_image,
       highlight_image=DestroyImage(highlight_image);
       return((Image *) NULL);
     }
+  (void) SetImageMask(difference_image,ReadPixelMask,(Image *) NULL,exception);
+  (void) SetImageMask(highlight_image,ReadPixelMask,(Image *) NULL,exception);
   (void) SetImageAlphaChannel(highlight_image,OpaqueAlphaChannel,exception);
   (void) QueryColorCompliance("#f1001ecc",AllCompliance,&highlight,exception);
   artifact=GetImageArtifact(image,"highlight-color");