[RESOLVED] possible bug +clip IM 6.8.0.1 Q16

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

[RESOLVED] possible bug +clip IM 6.8.0.1 Q16

Post by fmw42 »

IM 6.8.0.1 Q16 Mac OSX Snow Leopard.


This works to make the inside region red.

convert 1.psd -clip -fill red -colorize 100 1test11.png


According to http://www.imagemagick.org/Usage/masking/#clip

"Note that the "+clip" operator negates the mask"

So this I would think would leave the outside as is and make the inside red

convert 1.psd +clip -fill red -colorize 100 1test12.png

But it is all red.


Is this a bug or am I misunderstanding something.
Last edited by fmw42 on 2012-10-23T10:00:14-07:00, edited 1 time in total.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: possible bug +clip IM 6.8.0.1 Q16

Post by magick »

The documentation might be wrong. The +clip option removes the image clip mask. It does not negate it. To negate it, you can extract it, negate it yourself, associate it with your original image, then apply.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: possible bug +clip IM 6.8.0.1 Q16

Post by fmw42 »

magick wrote:The documentation might be wrong. The +clip option removes the image clip mask. It does not negate it. To negate it, you can extract it, negate it yourself, associate it with your original image, then apply.

Confirmed. +clip removes the mask contrary to the Usage page that says it negates it.
Post Reply