Page 1 of 1

v7 -region

Posted: 2016-05-15T07:55:46-07:00
by snibgo
Not actually a bug, because as the V7 porting guide says:
not yet implemented in "magick". (very soon)
"-region" isn't implemented in v7.0.1-3 (Q16 integer, pre-built Windows binary).

Code: Select all

f:\prose\PICTURES>%IMG7%magick rose: -region 10x10+0+0 -alpha transparent x.png

magick: unrecognized option `-region' at CLI arg 2 @ error/operation.c/CLINoImageOperator/5055.

Re: v7 -region

Posted: 2016-07-23T03:33:35-07:00
by snibgo
The current v7.0.2-5 (on Windows 8.1) still doesn't implement "-region".

Code: Select all

%IMG7%magick rose: -region 10x10+2+3 -evaluate Multiply 0.5 out.png

magick: unrecognized option `-region' at CLI arg 2 @ error/operation.c/CLINoImageOperator/5055.
Is "-region" now a deprecated feature? If so, please update the documentation at http://www.imagemagick.org/script/comma ... php#region

Re: v7 -region

Posted: 2016-07-24T08:40:08-07:00
by magick
The -region option works as expected for the 'convert' command-line utility. The 'magick' command-line utility supports scripts and is a bit more pedantic than 'convert' when parsing command-line options. We have not decided whether we can support the -region option for the 'magick' utility. We'll try to decide whether to support or deprecate -region for the 'magick' command-line in the next month or so.

Re: v7 -region

Posted: 2016-07-24T10:31:51-07:00
by fmw42
Could this not be supported by drawing a mask from the box coordinates (internally to IM) and processing it with -mask. Actually for IM 7 it would be either -read-mask or -write mask.

NOTE: The IM 7 options page does not list either -read-mask or -write-mask, only -mask. Would someone please clarify if -mask is supported in IM 7 and properly add the other two options as appropriate to the current IM 7 status of these options.

Re: v7 -region

Posted: 2016-07-28T14:43:42-07:00
by magick
Thanks for the problem report. We can reproduce it and will have a patch to fix it in GIT master branch @ https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @ http://www.imagemagick.org/download/beta/ by sometime tomorrow.