whugemann wrote:Sorry, but I suspected that there is nothing like a "+region" option in ImageMagick. (I erroneously wrote "+reset" instead.)
The Command Line Options page does not tell anything about there being a +region option. IM definitively crashes each time you use +region under Windows. This was my experience when I posed the question and I have just tested it again: IM crashes each time I mention "+region" ...
Wolfgang Hugemann
+region IS present, and working -- I have seen the code and used it.
But it does NOTHING unless you have previously used -region and it is still in effect. Region are automatically cancelled not only by +region but any multi-image list operator (like -compose) In this case even crop would cancel it even though it is classed as a 'simple' image operator.
It was a late addition during the hectic IM v5 to IMv6 conversion, whcih explains the lack of documentation. I even includes some basic usage examples of it (in 'image warping') however those examples has now moved to 'masking' as it is a sort of masking method (mask by cropping sub-images).
In IMv7 I would probably change it so it MUST be specifically cancelled (or produce an error), just as parenthesis must ve closed. Actually in many ways it works like parenthesis, though it actually pre-dates the implementation of parenthesis (added in the early days of IMv6).
ASIDE: I also plan to make using a image operation when no image is in memory an error, removing the current 'hairy' legacy handling where you can specify operations BEFORE you read or create images. This is actually a requirement for 'pipelined' or 'streaming' image operations, such as in a IM script that would make possible. You can't run, until you walk (or in this can have something to run on).