Re: How to do Gimp's colorize effect

Fred Weinhaus <[email protected]>
Newsgroups gmane.comp.video.image-magick.user
Message-ID <p06240801c7743ae62ad5@[192.168.1.2]>
>Is it a way to compute IM's colorize parameters from the Gimp's colorize
>ones in order to get the same result?


IM -modulate has different ranges for Brightness, Saturation and Hue, 
but I don't think it will colorize the way you want.

see -modulate at 
http://www.imagemagick.org/script/command-line-options.php#modulate

The other ways to do that are to:

use -tint, see http://www.imagemagick.org/script/command-line-options.php#tint

or

use +level-colors, see 
http://www.imagemagick.org/script/command-line-options.php#level-colors


Also read the sections on those at http://www.imagemagick.org/Usage/color/




This is kind of close. You can adjust the two colors in +level-colors:

convert testtext.png +level-colors black,'rgb(255,200,255)' 
testtext_lc_black_rgb255x200x255.png

or pick some named color. see http://www.imagemagick.org/script/color.php

See the color converter link near the top to play with colors.

Fred


P.S.

See also -colorize at 
http://www.imagemagick.org/script/command-line-options.php#colorize


This also works.

convert testtext.png -fill "rgb(255,200,255)" -colorize 50% 
testtext_colorize255x200x255.png
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.