g'day everyone,

I'm using lcms via Delphi to perform to separate to CMYK.

Sometimes it works, and sometimes gives a fatal error:

Error #3000; Output profile is operating on wrong colorspace

resulting in abrupt program termination.

To me the message suggests that the problem is the Color Space of the
chosen output profile. To address this I wrote some code to open the
profile and extract the ColorSpace as a first step:

  hSrc := lcmsdll.cmsOpenProfileFromFile(PChar(Filename), 'r');
  Sig1 := lcmsdll.cmsGetColorSpace(hSrc);
  Sig2 := cmsGetPCS(hSrc);
  lcmsdll.cmsCloseProfile(hSrc);

I thought that Sig1 and Sig2 would be one of the icColorSpaceSignature
Format descriptors:

TYPE_GRAY_8                 = $30009
...
TYPE_CMYK_DBL               = $60020

however, I always get Sig1 = 1380401696, and Sig2 = 1482250784 - which
isn't in the range of expected values.

Can sometime indicate what I'm doing wrong, and/or how I can identify
valid output profiles to use with CMYK separations.


Thanks in advance,


Mat

________________________________________

rm -rf /mnt/windows/*
________________________________________

Dr Mat Ballard,
CSIRO Molecular Science
Linux Registered User #6854


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to