From: Cristy Date: Thu, 8 Mar 2018 00:08:21 +0000 (-0500) Subject: https://github.com/ImageMagick/ImageMagick/issues/1014 X-Git-Tag: 7.0.7-26~69 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7ce0aff242f44ec6ba8650aa4536abb846c0f0cf;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/1014 --- diff --git a/MagickWand/mogrify.c b/MagickWand/mogrify.c index cd0120e5c..5365053b4 100644 --- a/MagickWand/mogrify.c +++ b/MagickWand/mogrify.c @@ -1650,8 +1650,10 @@ WandExport MagickBooleanType MogrifyImage(ImageInfo *image_info,const int argc, */ (void) SyncImageSettings(mogrify_info,*image,exception); (void) ParsePageGeometry(*image,argv[i+1],&geometry,exception); - (void) QueryColorCompliance(argv[i+2],AllCompliance,&target, - exception); + (void) GetOneVirtualPixelInfo(*image,TileVirtualPixelMethod, + geometry.x,geometry.y,&target,exception); + (void) QueryColorCompliance(argv[i+2],AllCompliance, + &draw_info->fill,exception); (void) FloodfillPaintImage(*image,draw_info,&target,geometry.x, geometry.y,*option == '-' ? MagickFalse : MagickTrue,exception); break; diff --git a/MagickWand/operation.c b/MagickWand/operation.c index 4f7e045d8..a3f949999 100644 --- a/MagickWand/operation.c +++ b/MagickWand/operation.c @@ -2365,7 +2365,10 @@ static MagickBooleanType CLISimpleOperatorImage(MagickCLI *cli_wand, if (IsGeometry(arg1) == MagickFalse) CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1); (void) ParsePageGeometry(_image,arg1,&geometry,_exception); - (void) QueryColorCompliance(arg2,AllCompliance,&target,_exception); + (void) GetOneVirtualPixelInfo(_image,TileVirtualPixelMethod, + geometry.x,geometry.y,&target,exception); + (void) QueryColorCompliance(arg2,AllCompliance,&_draw_info->fill, + _exception); (void) FloodfillPaintImage(_image,_draw_info,&target,geometry.x, geometry.y,IsPlusOp,_exception); break;