From: Cristy Date: Wed, 16 May 2018 00:16:02 +0000 (-0400) Subject: Fixed the -mask option X-Git-Tag: 7.0.7-33~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=86d95dc4ad2f270910e2dc86ffc8fe3a9d5487ff;p=imagemagick Fixed the -mask option --- diff --git a/MagickWand/mogrify.c b/MagickWand/mogrify.c index e46edb675..92c4815f0 100644 --- a/MagickWand/mogrify.c +++ b/MagickWand/mogrify.c @@ -2119,7 +2119,6 @@ WandExport MagickBooleanType MogrifyImage(ImageInfo *image_info,const int argc, mask=GetImageCache(mogrify_info,argv[i+1],exception); if (mask == (Image *) NULL) break; - (void) NegateImage(mask,MagickFalse,exception); (void) SetImageMask(*image,WritePixelMask,mask,exception); mask=DestroyImage(mask); break; diff --git a/MagickWand/operation.c b/MagickWand/operation.c index 1a2a5dd7c..7d7589679 100644 --- a/MagickWand/operation.c +++ b/MagickWand/operation.c @@ -2725,7 +2725,6 @@ static MagickBooleanType CLISimpleOperatorImage(MagickCLI *cli_wand, mask=GetImageCache(_image_info,arg1,_exception); if (mask == (Image *) NULL) break; - (void) NegateImage(mask,MagickFalse,exception); (void) SetImageMask(_image,WritePixelMask,mask,_exception); mask=DestroyImage(mask); break;