]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Wed, 17 May 2017 19:11:19 +0000 (15:11 -0400)
committerCristy <urban-warrior@imagemagick.org>
Wed, 17 May 2017 19:11:19 +0000 (15:11 -0400)
MagickWand/compare.c
utilities/compare.1.in

index 03b867a2cff5efbfce10f05a9e6bcbd4753ce80a..3341cda5e13addcf672e6cb7f2a576651a89c4aa 100644 (file)
@@ -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++;
index 21f74b9059c8c3fa712cb2f842ea20d37cfba7b8..d6c0d92af05a3a3164e5e90a2b0d8f57287fd91d 100644 (file)
@@ -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