Hi, Linearization devicelinks are just curves that goes CMYK -> CMYK. You need a real profile to do a CMYK to sRGB.
Which CMYK space you plan to use? If you don't care, you could use ISOcoated, there are freely available profiles. For example, on FOGRA: http://www.colormanagement.org/en/isoprofile.html > I tried to use cmsOpenProfileFromFile() method to create profiles and result > colors are not correct. If you mean you used a real profile, then double check your code, or try tificc utility for example. I am using such kind of transforms all the time and AFAIK they work quite well. Regards Marti On 20/05/2011 12:06:46, Marko Vranic (mvranic1...@gmail.com) wrote: > Hi, > > > > I'm new with lcms2... > > how can I make CMYK -> sRGB transform ? > Here is what I tried. > > > cmsToneCurve* Gamma = cmsBuildGamma(0, 2.2); > cmsToneCurve* Gamma4[4]; > cmsHPROFILE hProfile; > Gamma4[0] = Gamma4[1] = Gamma4[2] = Gamma4[3] = Gamma; > cmsHPROFILE CMYK = cmsCreateLinearizationDeviceLink(cmsSigCmykData, > Gamma4); > > > > cmsHPROFILE sRGB= cmsCreate_sRGBProfile(); > > > cmsHTRANSFORM transformation = cmsCreateTransform( CMYK, TYPE_CMYK_8 , sRGB > , TYPE_RGB_8, INTENT_PERCEPTUAL, 0); > > > and transformation fails. > > > I tried to use cmsOpenProfileFromFile() method to create profiles and result > colors are not correct. > > > > What I'm > been missing? > =========================================================================== > > Se certificó que el correo no contiene virus. > Comprobada por AVG - www.avg.es [link: 'http://www.avg.es'] > Versión: 10.0.1375 / Base de datos de virus: 1509/3648 - Fecha de la > versión: 19/05/2011 ------------------------------------------------------------------------------ What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ Lcms-user mailing list Lcms-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lcms-user