From 55d3c440c6f85481f17bca396be0112a169d6a19 Mon Sep 17 00:00:00 2001 From: Cristy Date: Fri, 2 Dec 2016 19:46:34 -0500 Subject: [PATCH] ... --- MagickWand/compare.c | 16 +++++++++++++++- utilities/compare.1.in | 1 + 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/MagickWand/compare.c b/MagickWand/compare.c index dd0f19314..c6272ef16 100644 --- a/MagickWand/compare.c +++ b/MagickWand/compare.c @@ -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: diff --git a/utilities/compare.1.in b/utilities/compare.1.in index 753775b3b..41911df6a 100644 --- a/utilities/compare.1.in +++ b/utilities/compare.1.in @@ -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 -- 2.50.1