]> granicus.if.org Git - imagemagick/commitdiff
Fixed the -mask option
authorCristy <urban-warrior@imagemagick.org>
Wed, 16 May 2018 00:16:02 +0000 (20:16 -0400)
committerCristy <urban-warrior@imagemagick.org>
Wed, 16 May 2018 00:16:02 +0000 (20:16 -0400)
MagickWand/mogrify.c
MagickWand/operation.c

index e46edb67579db3be2b5c184f3e343e1fbbbc8940..92c4815f0e81f9974de1ea1a2b14408f9bfa7230 100644 (file)
@@ -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;
index 1a2a5dd7cc0f8c3fe13b0a9524ee3630912a1d5e..7d758967933cfda2a675d9626595d06992bf482e 100644 (file)
@@ -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;