Help trying to achieve correct type of image tint

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

Re: Help trying to achieve correct type of image tint

Post by fmw42 »

There are several ways. Here are 3:


original grayscale image:
Image

Pick a tint color: see http://imagemagick.org/script/color.php

Method 1: use -tint and adjust the tint value
see http://www.imagemagick.org/script/comma ... s.php#tint

convert zelda3g.jpg -fill darkseagreen -tint 100 zelda3g_tint100.jpg
Image

Method 2: use -tint and -modulate for more control. Adjust tint value, lightness and saturation from -modulate
see http://www.imagemagick.org/script/comma ... p#modulate

convert zelda3g.jpg -fill darkseagreen -tint 100 -modulate 125,75,100 zelda3g_t100_m125x75x100.jpg
Image

Method 3: create a color gradient lookup table and apply with -clut
see http://www.imagemagick.org/script/comma ... s.php#clut
http://www.imagemagick.org/Usage/basics/#image_seq (parenthesis processing and line continuation)
if on windows, see http://www.imagemagick.org/Usage/api/#windows

convert \( -size 1x1 xc:black xc:darkseagreen xc:white +append \) \
-filter cubic -resize 256x1! -scale 256x20! tint_lut.png
Image

convert zelda3g.jpg tint_lut.png -clut zelda3g_tintlut.jpg
Image

reference: http://www.gimpguru.org/Tutorials/SampleToning/
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Help trying to achieve correct type of image tint

Post by fmw42 »

I have created a new script, tintilize, to achieve this effect.

See http://www.fmwconcepts.com/imagemagick/index.html
Post Reply