Hi
I have recently upgraded to LCMS 1.14
I am facing a problem in which I am not getting the RangeLMN entry for
lab color space
Is there is a reason that Range LMN entry is not being provided in csa?
If not then how can I get a RangeLMN entry through LCMS?
Red book states (See table 4.5, chapter 4) that this is optional... aha, I see,
if the
XYZ is above 1.0 you got clipping.
Ok, I'm adding a [ 0 2 0 2 0 2] in order to better support highlights.
Just modify this finction in cmsps2.c
static
void EmitLab2XYZ(LPMEMSTREAM m)
{
Writef(m, "/RangeABC [ 0 1 0 1 0 1]\n");
Writef(m, "/DecodeABC [\n");
Writef(m, "{100 mul 16 add 116 div } bind\n");
Writef(m, "{255 mul 128 sub 500 div } bind\n");
Writef(m, "{255 mul 128 sub 200 div } bind\n");
Writef(m, "]\n");
Writef(m, "/MatrixABC [ 1 1 1 1 0 0 0 0 -1]\n");
Writef(m, "/RangeLMN [ 0 2 0 2 0 2]\n"); // Add this line
Writef(m, "/DecodeLMN [\n");
Writef(m, "{dup 6 29 div ge {dup dup mul mul} {4 29 div sub 108 841 div mul}
ifelse 0.964200 mul} bind\n");
Writef(m, "{dup 6 29 div ge {dup dup mul mul} {4 29 div sub 108 841 div mul}
ifelse } bind\n");
Writef(m, "{dup 6 29 div ge {dup dup mul mul} {4 29 div sub 108 841 div mul}
ifelse 0.824900 mul} bind\n");
Writef(m, "]\n");
}
Thaks for the bug report.
Regards,
--
Marti Maria
The littlecms project.
www.littlecms.com
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.15/82 - Release Date: 25/08/2005
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Lcms-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lcms-user