Hi,
Did any of you guys try to convert from Named Color to CMYK ?
It looks like there is a problem in LCMS 2.2 (I guess it is present in 2.1
too) in realizing the Named Color -> CMYK transform.
Namely in cmsCreateExtendedTransform API, right after the profiles are
linked and the Lut pipeline is obtained, the _cmsOptimizePipeline seems to
not handle correctly this kind of transform.
On my testcase, the _cmsOptimizePipeline has transformed the MPEs Lut
pipeline into a single stage CLUT, loosing the cmsSigNamedColorElemType in
the process, which makes that a subsequent call to cmsTransform2DeviceLink
to save the transform in an incorect DeviceLink.
I have made an workaround in cmsCreateExtendedTransform so that not to call
the _cmsOptimizePipeline when the input Profile is a Named color one:
if (InputFormat != TYPE_NAMED_COLOR_INDEX)
_cmsOptimizePipeline(&Lut, LastIntent, &InputFormat, &OutputFormat,
&dwFlags);
After applying this workaround, the transform seems to be correctly done and
then properly saved via cmsTransform2DeviceLink.
Best Regards,
Claudiu
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user