Hi Carles, > We are currently porting our applications to LCMS 2.3 (from 1.16) > and we've found that the original profile illuminant is lost when > opening and saving.
Wow, 1.16 is really old. Hope you would find the new code easier to deal width. > It seems that this new version assumes that all profiles will be in > D50 illumninant, what it's not necessary true in our cases. > The cmsTakeIlluminant function disappeared and we cannot perform the > right crhomatic adaptations at our side. I'm afraid you are confusing the PCS illuminant with the source of light used to create the profile. The PCS illuminant (than's what is in the header) is just a reference. It is there for future ICC extensions and this is what the ICC spec saya about this field: "7.2.16 PCS illuminant field (Bytes 68 to 79) The PCS illuminant field shall contain the nCIEXYZ values X = 0,964 2, Y = 1,0 and Z = 0,824 9 encoded as an XYZNumber. See Annex A for further details." At that point, the old function to retrieve PCS illuminant is useless as should return same values for all valid profiles, so it was removed in 1.17 if I recall correctly. Otherwise, if what you really want is to create profiles on media illumined by light sources other that D50, then you should use the chromatic adaptation tag. The spec is very specific on that. See 9.2.15 chromaticAdaptationTag and also the annex D. I think there are some white papers in the ICC site talking about that. Regards Marti ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Lcms-user mailing list Lcms-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lcms-user