Newbie question - modify photo colour using this scale

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
drmarie
Posts: 11
Joined: 2010-09-05T10:47:30-07:00
Authentication code: 8675308

Newbie question - modify photo colour using this scale

Post by drmarie »

Hi guys...I'm just figuring out ImageMagick. This is what I'd like to do.

I'd like to take a photo and apply the following spectrum to it:



I greatly appreciate any help on how to do this!
Last edited by drmarie on 2011-02-14T06:23:19-07:00, edited 1 time in total.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Newbie question - modify photo colour using this scale

Post by fmw42 »

You can apply such a lookup table spectrum image to an image (especially if graylevel) using -clut

convert image spectrum -clut result

see

http://www.imagemagick.org/Usage/color_mods/#clut

Note, that even though the page says the spectrum (lut) image is to be a single row or column, it will work with a larger image as it just takes the first row or column and uses that.

Also see my unix bash script, pseudocolor, at the link below.
drmarie
Posts: 11
Joined: 2010-09-05T10:47:30-07:00
Authentication code: 8675308

Re: Newbie question - modify photo colour using this scale

Post by drmarie »

[deleted] - I figured it out!
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Newbie question - modify photo colour using this scale

Post by anthony »

PLEASE do not delete. Other people would like to know what you have done.

If you can save the example image in some file service rather than delete that. That would be better still.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply