v7 -region

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

v7 -region

Post 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.
snibgo's IM pages: im.snibgo.com
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: v7 -region

Post 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
snibgo's IM pages: im.snibgo.com
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: v7 -region

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: v7 -region

Post 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.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: v7 -region

Post 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.
Post Reply