desire CIELab space in imagemagick

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
gregaiken
Posts: 14
Joined: 2011-07-21T16:31:23-07:00
Authentication code: 8675308

desire CIELab space in imagemagick

Post by gregaiken »

is there a way to convert an RGB image file to either:
a. a CIELab color space (PDF supports such a native color space, as does OpenExr), or
b. to a CIELab raw ASCII format?
can any one provide a sample one-liner that would demonstrate this usage?

the reason being i need to convert an RGB image file to CIELab and in my own investigations, this conversion is not at all trivial and involves the notion of ICC color spaces as well. ive got now probably hundreds of printed out pages with all of these algorithms. true its all interesting, and if one day i can do the math myself - certainly i'd feel good about that. but until that time, i was wondering if this ability was already 'built into' imagemagick.

thanks,

greg
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: desire CIELab space in imagemagick

Post by fmw42 »

I am not sure this is exactly what you want, but see -colorspace LAB at http://www.imagemagick.org/script/comma ... colorspace
Post Reply