]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sat, 3 Dec 2016 00:46:34 +0000 (19:46 -0500)
committerCristy <urban-warrior@imagemagick.org>
Sat, 3 Dec 2016 00:46:34 +0000 (19:46 -0500)
MagickWand/compare.c
utilities/compare.1.in

index dd0f193140dee66a392f572e21092e6486167e3c..c6272ef169bae19512057a801700d7b690b22544 100644 (file)
@@ -129,7 +129,7 @@ static MagickBooleanType CompareUsage(void)
       "-quality value       JPEG/MIFF/PNG compression level",
       "-quiet               suppress all warning messages",
       "-quantize colorspace reduce colors in this colorspace",
-      "-read-mask filename  associate a read mask with the image"
+      "-read-mask filename  associate a read mask with the image",
       "-regard-warnings     pay attention to warning messages",
       "-respect-parentheses settings remain in effect until parenthesis boundary",
       "-sampling-factor geometry",
@@ -150,6 +150,7 @@ static MagickBooleanType CompareUsage(void)
       "-version             print version information",
       "-virtual-pixel method",
       "                     virtual pixel access method",
+      "-write-mask filename  associate a write mask with the image",
       (char *) NULL
     };
 
@@ -936,6 +937,19 @@ WandExport MagickBooleanType CompareImagesCommand(ImageInfo *image_info,
           }
         ThrowCompareException(OptionError,"UnrecognizedOption",option)
       }
+      case 'w':
+      {
+        if (LocaleCompare("write-mask",option+1) == 0)
+          {
+            if (*option == '+')
+              break;
+            i++;
+            if (i == (ssize_t) argc)
+              ThrowCompareException(OptionError,"MissingArgument",option);
+            break;
+          }
+        ThrowCompareException(OptionError,"UnrecognizedOption",option)
+      }
       case '?':
         break;
       default:
index 753775b3bcc1456d230e5f10c1ba1e2db10ad6b1..41911df6a3d0d19e07245b495359fefba2985fad 100644 (file)
@@ -57,6 +57,7 @@ Image Settings:
   \-transparent-color color
                        transparent color
   \-type type           image type
+  \-write-mask filename associate a write mask with the image
   \-verbose             print detailed information about the image
   \-virtual-pixel method
                        virtual pixel access method