Try this one I'm sending, you have to fill the copyright and description but all remaining tags are ok
Regards Marti cmsHPROFILE CMSEXPORT cmsCreateOld_sRGB() { cmsHPROFILE hICC; cmsCIEXYZTRIPLE Colorants = {{0.43607, 0.22249, 0.01392}, {0.38515, 0.71687, 0.09708}, {0.14307, 0.06061, 0.71410}}; cmsCIEXYZ D65 = { 0.95045, 1, 1.08905 }; cmsToneCurve* transferFunction; cmsFloat64Number Parameters[5]; Parameters[0] = 2.4; Parameters[1] = 1. / 1.055; Parameters[2] = 0.055 / 1.055; Parameters[3] = 1. / 12.92; Parameters[4] = 0.04045; transferFunction = cmsBuildParametricToneCurve(0, 4, Parameters); hICC = cmsCreateProfilePlaceholder(0); cmsSetProfileVersion(hICC, 2.1); cmsSetDeviceClass(hICC, cmsSigDisplayClass); cmsSetColorSpace(hICC, cmsSigRgbData); cmsSetPCS(hICC, cmsSigXYZData); cmsWriteTag(hICC, cmsSigMediaWhitePointTag, &D65); cmsWriteTag(hICC, cmsSigRedColorantTag, (void*) &Colorants.Red); cmsWriteTag(hICC, cmsSigBlueColorantTag, (void*) &Colorants.Blue); cmsWriteTag(hICC, cmsSigGreenColorantTag, (void*) &Colorants.Green); cmsWriteTag(hICC, cmsSigRedTRCTag, (void*) transferFunction); cmsLinkTag(hICC, cmsSigGreenTRCTag, cmsSigRedTRCTag ); cmsLinkTag(hICC, cmsSigBlueTRCTag, cmsSigRedTRCTag ); // ... set the description and copyright here return hICC; } El 13/10/2012 17:16, Pascal de Bruijn escribió: > Hi, > > We've switched from using cmsBuildParametricToneCurve to > cmsBuildTabulatedToneCurve16 to stop Windows Photo Viewer from not > showing our images. > > However, the resulting profile (with 1024 entries) quickly grows to > about 7KiB in size. > > The original srgb.icc from HP is only about 3KiB in size... > Considering the tables are 2KiB in size, I'm guessing the original > srgb.icc only has a single table which all three tags (rTRC, gTRC, > bTRC) refer to? > > Would a similar trick be possible when generating a TabulatedToneCurve > using LCMS2? > > Regards, > Pascal de Bruijn > > ------------------------------------------------------------------------------ > Don't let slow site performance ruin your business. Deploy New Relic APM > Deploy New Relic app performance management and know exactly > what is happening inside your Ruby, Python, PHP, Java, and .NET app > Try New Relic at no cost today and get our sweet Data Nerd shirt too! > http://p.sf.net/sfu/newrelic-dev2dev > _______________________________________________ > Lcms-user mailing list > Lcms-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/lcms-user > ------------------------------------------------------------------------------ Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev _______________________________________________ Lcms-user mailing list Lcms-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lcms-user