Hi,

>> In my first test after adding support for lcms, I'm getting
>> "cmsCreateMultiprofileTransform: ColorSpace mismatch" from line 1935
>> in cmsCreateMultiprofileTransform. I'm building the xform with the
>> same list of profiles as we would when using ColorSync (although
>> they're in cmsHPROFILE format of course). The profiles for this test
>> are an embedded rgb profile, a cmyk printer profile, and the rgb
>> monitor profile. What could be the problem here? Failure to understand
>> how cmsCreateMultiprofileTransform should be used, or lack of an
>> equivalent function in lcms like I use with ColorSync?

Well, reading the API documentation for 
cmsCreateMultiprofileTransform(), I see:
     - Colorspaces must be paired with the exception of
       Lab/XYZ, that can be interchanged.
So I guess that means you can't directly create an RGB -> CMYK (->CMYK) 
-> RGB transform with this function.

What you probably could do is create the individual stages of your 
transform with cmsCreateTransform(), convert these transforms to 
DeviceLinks with cmsTransform2DeviceLink(), and then chain the 
devicelinks together using cmsCreateMultiprofileTransform().

In practice, you're prebably better off using this only for the case 
where you need four profiles - and using cmsCreateTransform when you 
have two, and cmsCreateProofingTransform() when you have three.

Hope this helps
--
Alastair M. Robinson

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to