2004.12.18 18:27 "Re: [Tiff] CIELAB/ITULAB", by Bob Friesenhahn
You might consider using a CMS profile to convert CIELAB to sRGB. See http://www.littlecms.com/ for free software which can support this.
On Thu, 16 Dec 2004 firstname.lastname@example.org wrote:
I am at a loss. I need to convert CFF (color fax) files from a CAPI Fax software to TIFF files. According to ITU T.4, Annex E, and T.42, the pages are coded in JPEG / CIE L*a*b* with an APP1 marker "G3FAX\0". I set Compression=7 (JPEG) and write (almost) all the JPEG data (tables + entropy data) in one strip.
If I set PhotometricInterpretation=8 (CIELAB) then the resulting TIFF image will be displayed (by most polular viewers) with correct shapes but in wrong colors.
So I extended the libtiff by the Decode tag and tried PhotometricInterpretation=10 (ITULAB) with the default values for Decode (taken from http://www.awaresystems.be/imaging/tiff/tifftags/decode.html). Unsurprisingly, some of the viewers refused the TIFF file but the rest showed the same wrong colors.
What can be going wrong? And why the hell the Decode tag is of type RATIONAL (unsigned32/unsigned32) while the values can be negative?
Thank 4 all answers