Convert Raw file using different Colormaps

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
meshuggahbobo

Convert Raw file using different Colormaps

Post by meshuggahbobo »

Hi all!! First post ever :)

Sorry for my bad english :lol:

I have a raw file, contening some images, and i want to convert it to jpg:

Code: Select all

convert -quality 100 -depth 16 -size 256x256 -channel gray:in.raw out.jpg
ok no problem! But if I want to use a different colormap instead of using the gray colormap
(for example a hot red colormap, hsv colormap...) what i have to specify???

Tnks in advance for the help!!!!!!! :D
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Convert Raw file using different Colormaps

Post by fmw42 »

meshuggahbobo wrote:Hi all!! First post ever :)

Sorry for my bad english :lol:

I have a raw file, contening some images, and i want to convert it to jpg:

Code: Select all

convert -quality 100 -depth 16 -size 256x256 -channel gray:in.raw out.jpg
ok no problem! But if I want to use a different colormap instead of using the gray colormap
(for example a hot red colormap, hsv colormap...) what i have to specify???

Tnks in advance for the help!!!!!!! :D
I presume you want to color a grayscale image. If so, see -clut at
http://www.imagemagick.org/script/comma ... s.php#clut
http://www.imagemagick.org/Usage/color/#color_lut

Also I have some unix scripts, pseudocolor and mapcolors that might help. See http://www.fmwconcepts.com/imagemagick/index.html
meshuggahbobo

Re: Convert Raw file using different Colormaps

Post by meshuggahbobo »

Man you're my salvation!!! :D
Thanks a lot...
And beautiful scripts!!!

One question : HISTOG script works fine with grayscale images??
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Convert Raw file using different Colormaps

Post by fmw42 »

meshuggahbobo wrote:Man you're my salvation!!! :D
Thanks a lot...
And beautiful scripts!!!

One question : HISTOG script works fine with grayscale images??
I am not sure I know what you are asking about the HISTOG script? With grayscale images, it may still make 3 histograms (red, green, blue), but they will all be the same histogram. Are you asking something else?
Post Reply