From: Cristy Date: Fri, 14 Jul 2017 00:49:58 +0000 (-0400) Subject: Add support for -separate option in the compare utility X-Git-Tag: 7.0.6-1~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3517cfbb7ba3fe4dfc02927dc7d8096678a33e7f;p=imagemagick Add support for -separate option in the compare utility --- diff --git a/MagickWand/compare.c b/MagickWand/compare.c index af3e3bc1e..3648809a6 100644 --- a/MagickWand/compare.c +++ b/MagickWand/compare.c @@ -86,6 +86,11 @@ static MagickBooleanType CompareUsage(void) **p; static const char + *channel_operators[]= + { + "-separate separate an image channel into a grayscale image", + (char *) NULL + }, *miscellaneous[]= { "-channel mask set the image channel mask", @@ -190,6 +195,9 @@ static MagickBooleanType CompareUsage(void) (void) printf("\nImage Operators:\n"); for (p=operators; *p != (char *) NULL; p++) (void) printf(" %s\n",*p); + (void) printf("\nImage Channel Operators:\n"); + for (p=channel_operators; *p != (char *) NULL; p++) + (void) printf(" %s\n",*p); (void) printf("\nImage Sequence Operators:\n"); for (p=sequence_operators; *p != (char *) NULL; p++) (void) printf(" %s\n",*p); @@ -962,6 +970,8 @@ WandExport MagickBooleanType CompareImagesCommand(ImageInfo *image_info, ThrowCompareInvalidArgumentException(option,argv[i]); break; } + if (LocaleCompare("separate",option+1) == 0) + break; if (LocaleCompare("set",option+1) == 0) { i++; diff --git a/utilities/compare.1.in b/utilities/compare.1.in index 8cba1e503..2a9bfc49d 100644 --- a/utilities/compare.1.in +++ b/utilities/compare.1.in @@ -76,6 +76,9 @@ Image Operators: lightness rescaling using sigmoidal contrast enhancement \-trim trim image edges +Image Channel Operators: + \-separate separate an image channel into a grayscale image + Image Sequence Operators: \-crop geometry cut out a rectangular region of the image \-write filename write images to this file diff --git a/utilities/convert.1.in b/utilities/convert.1.in index c9880f7c0..309d782d4 100644 --- a/utilities/convert.1.in +++ b/utilities/convert.1.in @@ -269,7 +269,6 @@ Image Operators: \-white-threshold value force all pixels above the threshold into white - Image Channel Operators: \-channel-fx expression exchange, extract, or transfer one or more image channels