Page 1 of 1

still bug in -colorize in IM 6.4.1-9

Posted: 2008-06-20T16:03:21-07:00
by fmw42
I am still finding:

(using IM 6.4.1-9 Q16 non-hdri on Mac OSX Tiger)

convert -size 100x100 gradient: -colorize 100,0,0 tmp.png

Produces a cyan gradient rather than the expected red gradient. Colors are being complemented.

convert -size 100x100 gradient: -colorize 100 tmp.png

Produces an all black image.

Sorry, I did not see your latest reply to my earlier email reporting this in IM 6.4.1-8 until after I sent this.

Re: still bug in -colorize in IM 6.4.1-9

Posted: 2008-06-30T20:19:40-07:00
by anthony
Reminder of the mistake in the above test...

The -colorize operator overlays a image of the given -fill color. If you do not have a -fill color it will default to black.

As such you are overlaying 'black' values into the 'red' channel. As a result 'red' channel is filled with 'zeros' leaving the other colors alone. 'white' minus all its 'red' values then becomes 'cyan'

Colorize is NOT broken, just misused.