From d9589b1cbdf73ca5a578877db3e8e5e143fe377a Mon Sep 17 00:00:00 2001 From: Cristy Date: Fri, 19 May 2017 07:12:51 -0400 Subject: [PATCH] https://www.imagemagick.org/discourse-server/viewtopic.php?f=2&t=31938 --- MagickWand/compare.c | 12 ++++++++++++ MagickWand/convert.c | 2 +- utilities/compare.1.in | 1 + utilities/convert.1.in | 2 +- 4 files changed, 15 insertions(+), 2 deletions(-) diff --git a/MagickWand/compare.c b/MagickWand/compare.c index 3341cda5e..5dd5a1cef 100644 --- a/MagickWand/compare.c +++ b/MagickWand/compare.c @@ -157,6 +157,7 @@ static MagickBooleanType CompareUsage(void) "-seed value seed a new sequence of pseudo-random numbers", "-set attribute value set an image attribute", "-quality value JPEG/MIFF/PNG compression level", + "-repage geometry size and location of an image canvas", "-similarity-threshold value", " minimum distortion for (sub)image match", "-size geometry width and height of image", @@ -879,6 +880,17 @@ WandExport MagickBooleanType CompareImagesCommand(ImageInfo *image_info, } if (LocaleCompare("regard-warnings",option+1) == 0) break; + if (LocaleCompare("repage",option+1) == 0) + { + if (*option == '+') + break; + i++; + if (i == (ssize_t) argc) + ThrowCompareException(OptionError,"MissingArgument",option); + if (IsGeometry(argv[i]) == MagickFalse) + ThrowCompareInvalidArgumentException(option,argv[i]); + break; + } if (LocaleCompare("resize",option+1) == 0) { if (*option == '+') diff --git a/MagickWand/convert.c b/MagickWand/convert.c index 620437108..8108827f2 100644 --- a/MagickWand/convert.c +++ b/MagickWand/convert.c @@ -275,7 +275,6 @@ static MagickBooleanType ConvertUsage(void) " random threshold the image", "-region geometry apply options to a portion of the image", "-render render vector graphics", - "-repage geometry size and location of an image canvas", "-resample geometry change the resolution of an image", "-resize geometry resize the image", "-roll geometry roll an image vertically or horizontally", @@ -430,6 +429,7 @@ static MagickBooleanType ConvertUsage(void) "-red-primary point chromaticity red primary point", "-regard-warnings pay attention to warning messages", "-remap filename transform image colors to match this set of colors", + "-repage geometry size and location of an image canvas", "-respect-parentheses settings remain in effect until parenthesis boundary", "-sampling-factor geometry", " horizontal and vertical sampling factor", diff --git a/utilities/compare.1.in b/utilities/compare.1.in index d6c0d92af..96415cab3 100644 --- a/utilities/compare.1.in +++ b/utilities/compare.1.in @@ -44,6 +44,7 @@ Image Settings: \-quantize colorspace reduce colors in this colorspace \-read-mask filename associate a read mask with the image \-regard-warnings pay attention to warning messages + \-repage geometry size and location of an image canvas \-respect-parentheses settings remain in effect until parenthesis boundary \-sampling-factor geometry horizontal and vertical sampling factor diff --git a/utilities/convert.1.in b/utilities/convert.1.in index 09ccbd28b..580245f16 100644 --- a/utilities/convert.1.in +++ b/utilities/convert.1.in @@ -84,6 +84,7 @@ Image Settings: \-red-primary point chromaticity red primary point \-regard-warnings pay attention to warning messages \-remap filename transform image colors to match this set of colors + \-repage geometry size and location of an image canvas \-respect-parentheses settings remain in effect until parenthesis boundary \-sampling-factor geometry horizontal and vertical sampling factor @@ -220,7 +221,6 @@ Image Operators: random threshold the image \-region geometry apply options to a portion of the image \-render render vector graphics - \-repage geometry size and location of an image canvas \-resample geometry change the resolution of an image \-resize geometry resize the image \-roll geometry roll an image vertically or horizontally -- 2.50.1