From: Cristy Date: Wed, 17 May 2017 19:11:19 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.5-7~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=63571f7da1de27ef4c9c6c8b2bda8c6b6df212e0;p=imagemagick ... --- diff --git a/MagickWand/compare.c b/MagickWand/compare.c index 03b867a2c..3341cda5e 100644 --- a/MagickWand/compare.c +++ b/MagickWand/compare.c @@ -120,6 +120,7 @@ static MagickBooleanType CompareUsage(void) " transparent, extract, background, or shape", "-authenticate password", " decipher image with this password", + "-background color background color", "-colorspace type alternate image colorspace", "-compose operator set image composite operator", "-compress type type of pixel compression when writing the image", @@ -396,6 +397,15 @@ WandExport MagickBooleanType CompareImagesCommand(ImageInfo *image_info, } case 'b': { + if (LocaleCompare("background",option+1) == 0) + { + if (*option == '+') + break; + i++; + if (i == (ssize_t) argc) + ThrowCompareException(OptionError,"MissingArgument",option); + break; + } if (LocaleCompare("brightness-contrast",option+1) == 0) { i++; diff --git a/utilities/compare.1.in b/utilities/compare.1.in index 21f74b905..d6c0d92af 100644 --- a/utilities/compare.1.in +++ b/utilities/compare.1.in @@ -13,6 +13,7 @@ Image Settings: \-alpha option on, activate, off, deactivate, set, opaque, copy transparent, extract, background, or shape \-authenticate value decrypt image with this password + \-background color background color \-colorspace type alternate image colorspace \-compose operator set image composite operator \-compress type type of pixel compression when writing the image