Re: [Lcms-user] cmsBuildTabulatedToneCurve16

2012-10-16 Thread Marti Maria
> Aren't parametric tone curves an ICC V4 feature ? >> cmsSetProfileVersion(hICC, 2.1); > Or does this convert it to an ICC V2 compatible table ? That is. Marti. -- Don't let slow site performance ruin your busine

Re: [Lcms-user] cmsBuildTabulatedToneCurve16

2012-10-16 Thread marti . maria
Hi Graeme, In my implementation the count is canonical and then the ascii string (or unicode) may contain trailing zeros for alignment. This particular case of double terminator is indeed a bug in my side, although I've seen other profiles using padding as well. I will remove the padding in next

Re: [Lcms-user] cmsBuildTabulatedToneCurve16

2012-10-15 Thread Graeme Gill
Marti Maria wrote: > Humm... A binary dump of the profile you are attaching shows no script > code but only correct unicode data, and both 'desc' tags are similar. > Any other software complaining? > Regards > Marti > >> tag 0: >>sig 'desc' >>type 'desc' >>offset 264 >>

Re: [Lcms-user] cmsBuildTabulatedToneCurve16

2012-10-15 Thread Graeme Gill
Pascal de Bruijn wrote: > I'm not particularly clear on what ScriptCode is, glancing over the > ICCv2 spec didn't clear anything up either... It's an old Mac internationalization thing. If you go rummaging around in Mac history, there is some info on it. Graeme Gill. ---

Re: [Lcms-user] cmsBuildTabulatedToneCurve16

2012-10-15 Thread Graeme Gill
Marti Maria wrote: Hi, > transferFunction = cmsBuildParametricToneCurve(0, 4, Parameters); Aren't parametric tone curves an ICC V4 feature ? > cmsSetProfileVersion(hICC, 2.1); Or does this convert it to an ICC V2 compatible table ? Graeme. ---

Re: [Lcms-user] cmsBuildTabulatedToneCurve16

2012-10-15 Thread Marti Maria
> Thanks, that's very helpful. There is just one thing left, which is > that some of our 'desc' tags have ScriptCode and some don't: Humm... A binary dump of the profile you are attaching shows no script code but only correct unicode data, and both 'desc' tags are similar. Any other software c

Re: [Lcms-user] cmsBuildTabulatedToneCurve16

2012-10-14 Thread Pascal de Bruijn
On Sat, Oct 13, 2012 at 5:47 PM, Marti Maria wrote: > > Try this one I'm sending, you have to fill the copyright and description but > all remaining tags are ok Thanks, that's very helpful. There is just one thing left, which is that some of our 'desc' tags have ScriptCode and some don't: tag 0:

Re: [Lcms-user] cmsBuildTabulatedToneCurve16

2012-10-13 Thread Marti Maria
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.7

Re: [Lcms-user] cmsBuildTabulatedToneCurve16

2012-10-13 Thread Marti Maria
>Would a similar trick be possible when generating a TabulatedToneCurve >using LCMS2? Yes, use cmsLinkTag. Regards Marti El 13/10/2012 17:16, Pascal de Bruijn escribió: > Hi, > > We've switched from using cmsBuildParametricToneCurve to > cmsBuildTabulatedToneCurve16 to stop Windows Photo Viewe

[Lcms-user] cmsBuildTabulatedToneCurve16

2012-10-13 Thread Pascal de Bruijn
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...