Convert an image to different shades of one colour (like greyscale)

Soldato
Joined
1 Sep 2003
Posts
3,411
Location
US of A
Hi.

Similar to converting a colour image to greyscale, I am wanting to convert a colour image to different shades of one colour (for example, an orange or green tint). How would I do this without using any commercial software like Adobe Photoshop? I can program with C#/PHP (if it's possible to do it programmatically like this) and have The GIMP installed.

Thanks.
Jon
 
Last edited:
ImageMagick will do this.

http://www.imagemagick.org/Usage/color/#grayscale
http://www.imagemagick.org/Usage/color/#tint_diy


There are dozens of ways to go about it depending on exactly what you want to do.

Here is a quick example :

Code:
convert karman_engine.jpg -modulate 100,0,0 ( +clone +matte -fill green -colorize 100% ) -compose overlay -composite tint_overlay.jpg

I also did another with gold and 85%.

Here's the result

outyq9.jpg
 
Back
Top Bottom