Page 1 of 1

desire CIELab space in imagemagick

Posted: 2012-03-21T15:05:21-07:00
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

Re: desire CIELab space in imagemagick

Posted: 2012-03-21T15:16:38-07:00
by fmw42
I am not sure this is exactly what you want, but see -colorspace LAB at http://www.imagemagick.org/script/comma ... colorspace