Commit cd02f3fd0 for imagemagick.org
commit cd02f3fd01beb19a972576beaca1d085b705065d
Author: Cristy <urban-warrior@imagemagick.org>
Date: Sun Jun 29 07:10:54 2025 -0400
reverse highlighting polarity
diff --git a/MagickCore/compare.c b/MagickCore/compare.c
index 64531457e..d3fcc59d6 100644
--- a/MagickCore/compare.c
+++ b/MagickCore/compare.c
@@ -247,9 +247,9 @@ MagickExport Image *CompareImages(Image *image,const Image *reconstruct_image,
continue;
}
if (IsFuzzyEquivalencePixel(image,p,reconstruct_image,q) == MagickFalse)
- SetPixelViaPixelInfo(highlight_image,&lowlight,r);
- else
SetPixelViaPixelInfo(highlight_image,&highlight,r);
+ else
+ SetPixelViaPixelInfo(highlight_image,&lowlight,r);
p+=(ptrdiff_t) GetPixelChannels(image);
q+=(ptrdiff_t) GetPixelChannels(reconstruct_image);
r+=(ptrdiff_t) GetPixelChannels(highlight_image);