Re: [Lcms-user] LittleCMS Performance and Non-Intel Processors

2017-07-31 Thread Marti Maria
Many time ago, the code had some inline  assembly code. I removed every trace of assembly  about 15 years ago and take the requirement of pure C99 code forever. Was a good idea. Worked great and survived aging. I   think optimizations  have to be done by arranging C code to help compiler, assembly

Re: [Lcms-user] Build warnings on OSX / clang

2017-07-24 Thread Marti Maria
ou can compare the files and see whether you feel the changes are safe enough.  I'll make it my mission not to change the logic or your intent with the style.  -Noel From: Marti Maria [mailto:marti.maria@littlecms.com] Sent: Mon, Ju

Re: [Lcms-user] Build warnings on OSX / clang

2017-07-24 Thread Marti Maria
Hi, Sometimes I use  signed to unsigned promotion without cast. This is safe  if values are small and positive. Mostly to avoid casts in memset, memmove, calloc, etc. which looks really ugly.If you can found other cases, like that one in cmsgamma.c, please let me know. But this latter was fixed aft

Re: [Lcms-user] Create ICC V2 profile

2017-04-12 Thread Marti Maria
Hi Terence, It is easy. Just set the version to 2.0 prior saving. The library will do all necessary conversions to get a V2 compliant profile. Many V2 profiles are marked as using 3.4RegardsMartiOn 12 Apr 2017 18:29, Terence Tay wrote:Hello,I am currently using LCMS to create profiles using cmsCre

Re: [Lcms-user] Check Out-of-gamut in Output CMYK Profile

2017-04-12 Thread Marti Maria
Hi, you need to use the built-in lab identity for input and the formatter would be TYPE_Lab_DBL,Then instead of sRGB, put your CMYK profile. You may alsowant to check the result with transicc.RegardsMartiOn 12 Apr 2017 10:11, "Sapaico-Valera, Ricardo" wrote: Hello,   I have an out

Re: [Lcms-user] cmsReadTag

2017-02-04 Thread Marti Maria
er, typeof(MyCIEXYZ)); 9) And voilà! These are the new XYZ values     // X = 0.9666     // Y = 1.0     // Z = 0.8555 10) I love programming with LittleCMS -- thank YOU Marti Maria I still have a TON of questions... Once I modified the monitor profile

Re: [Lcms-user] Lcms-user Digest, Vol 115, Issue 3

2017-01-14 Thread Marti Maria
Thanks Tamas for let us know!RegardsMartiOn Jan 14, 2017 9:42 AM, liti1...@vipmail.hu wrote:Thanks for the replies.Sorry for the delay, but i had to wrote a standalone program for testing in a multi-threaded environment.The conclusion is: Lcms (the latest one) works fine without any problem, so i n

Re: [Lcms-user] Multi-Threading in VS

2017-01-08 Thread Marti Maria @ LittleCMS
Hi⁣ Tamas, Could you please detail which errors you get? I'm using multi threading without  problems, so maybe something is wrong, perhaps In the documentation. Best regards, Marti On 8 Jan 2017, 18:47, at 18:47, liti1...@vipmail.hu wrote: >Dear All, >I am using lcms2.dll and their standard met

Re: [Lcms-user] Soft proofing problems with gamut checks

2016-11-03 Thread marti . maria
Hi Elle, You are right, gamut check was not intended to work in unbounded mode and also, due to the way it works, it needs a space perceptually uniform to perform good. This is because gamut check uses a LUT driven by CIE L*a*b* to hold the distance of each color to gamut boundary. Works

Re: [Lcms-user] converting to K-only CMYK

2016-09-07 Thread Marti Maria
would need to use a CLUT. Now you can use this profile as output in a sRGB to KXX transform. You will find K in the first output channel. As additional bonus you can use any input profile other than sRGB and any color other than R=G=B. Regards Marti Maria The LittleCMS project http://www.li

Re: [Lcms-user] Conversion issues

2016-08-31 Thread Marti Maria
Hi, In general, lcms matches quite well photoshop. But to get same results you have to use same profiles and same settings. For example, if PS is using the file based sRGB v2, you should use this file instead of the built-in sRGB, which is v4. In perceptual and converting to lab there is a diffe

Re: [Lcms-user] Soft proofing problems when the destination profile supports unbounded profile conversions

2016-08-17 Thread Marti Maria
e on the behavior of standard softproofing, but this is just what we intend for, right? and the CMM grows in one interesting feature. Thoughts? Marti Maria The LittleCMS project http://www.littlecms.com -Original Message- From: Graeme Gill [mailto:gra...@argyllcms.com] Sent: viernes, 12 d

Re: [Lcms-user] Negative channel values are clipped upon floating point conversions to profiles with true gamma TRCs

2016-08-17 Thread Marti Maria
use it and deal with negative numbers, or to clip to zero as many CMMs does. But this does not work in the inverse way: if the profile does NOT give any clue on what to do on negative numbers, then the CMM has to clip them to zero. This is a sort of critical thing for inter-operability sake. Reg

Re: [Lcms-user] Negative channel values are clipped upon floating point conversions to profiles with true gamma TRCs

2016-08-11 Thread Marti Maria
one. AdobeRGB cannot because is a pure exponential. Regards Marti Maria The LittleCMS project http://www.littlecms.com -Original Message- From: Elle Stone [mailto:ellest...@ninedegreesbelow.com] Sent: miércoles, 10 de agosto de 2016 16:26 To: Lcms Liste Subject: [Lcms-user] Negat

Re: [Lcms-user] Soft proofing problems when the destination profile supports unbounded profile conversions

2016-08-11 Thread Marti Maria
n that? I would like to know what lcms users think and eventually modify the behavior for next release. Best regards, Marti Maria The LittleCMS project http://www.littlecms.com -Original Message- From: Elle Stone [mailto:ellest...@ninedegreesbelow.com] Sent: miércoles, 10 de agosto de 2016

[Lcms-user] ANNOUNCE: Little CMS 2.8 released

2016-07-24 Thread Marti Maria
take a look on: Main site: http://www.littlecms.com <http://www.littlecms.com/> Downloads: http://www.littlecms.com/download.html Best regards, Marti Maria The Little CMS project <http://www.littlecms.com/> http://www.l

Re: [Lcms-user] Suggestion to get the 'System' color profile (monitor)on Windows?

2016-07-13 Thread Marti Maria
Hello Roger, Lcms is portable and not tied to any operating system. Runs on windows, mac, linux but also on embedded systems and I'm pretty confident many people is using it in such way. So there is no way to get the system monitor because each operating system does it differently, there is no

Re: [Lcms-user] Softproofing with parametric tonecurve

2016-07-12 Thread Marti Maria
zed color space. If the profile would represent a physical medium, then it will work as you expect. You could also try to use 8 bit instead of floats and cmsFLAGS_NOOPTIMIZE. Regards Marti Maria The LittleCMS project http://www.littlecms.com -Original Message- From: Tobias Ellinghaus

Re: [Lcms-user] lcms2-2.8 release candidate 1 available for testing

2016-07-11 Thread Marti Maria
Hello, Hopefully the final release candidate. If all goes fine, I will do the 2.8 release next week. http://www.littlecms.com/lcms2-2.8rc3.tar.gz Best regards Marti Maria The LittleCMS project http://www.littlecms.com From: Marti Maria [mailto:marti.ma...@littlecms.com

Re: [Lcms-user] Softproofing with parametric tonecurve

2016-06-23 Thread Marti Maria
Ok, I see. A profile created in this way, with primaries and parametric curves, behaves like a "perfect" profile. That is, it can be inverted with no loss and its gamut is infinite. You can operate this profile with negative rgb or xyz values. Or with values well over 255. And the roundtrip is exac

Re: [Lcms-user] Softproofing with parametric tonecurve

2016-06-20 Thread Marti Maria
Hi Tobias, could you explain a little bit more how you use this profile with softproofing? What result do you expect? What are you getting? This would help to catch the bug if this is the case Thanks Marti On Jun 20, 2016 12:19 PM, Tobias Ellinghaus wrote: > > Hello, > > I am currently strugg

Re: [Lcms-user] Difficulty with cmsTransform in C#

2016-06-17 Thread Marti Maria
Hi Roger, I'm not a c# expert, but your code seems fine. I guess the problem is elsewhere... Regards Marti Maria The LittleCMS project http://www.littlecms.com -Original Message- From: Roger Breton [mailto:gr...@videotron.ca] Sent: jueves, 16 de junio de 2016 21:25 To: lcms

Re: [Lcms-user] lcms2-2.8 release candidate 1 available for testing

2016-06-07 Thread Marti Maria
Hi, Looks great! I have added your changes to the git repository. Many thanks for your contribution. Best regards, Marti Maria The LittleCMS project http://www.littlecms.com From: Noel Carboni [mailto:ncarb...@prodigitalsoftware.com] Sent: martes, 7 de junio de 2016 21:34

Re: [Lcms-user] CMYK to CieLab

2016-06-07 Thread Marti Maria
gamut. I doubt any decent CMM will give 255, 0, 255, this is not in the ICC profile. Regards Marti Maria The LittleCMS project http://www.littlecms.com -Original Message- From: Harald Weinhandl [mailto:hvo...@gmail.com] Sent: martes, 7 de junio de 2016 5:58 To: lcms-user@lists.sourc

[Lcms-user] lcms2-2.8 release candidate 1 available for testing

2016-06-06 Thread Marti Maria
annel transportation and a new transform stride function and plug-in which can be used to increase significantly the processing speed. See here the release candidate http://www.littlecms.com/lcms2-2.8rc1.tar.gz Best regards Marti Maria The LittleCMS project http://www.littlecm

Re: [Lcms-user] How to create a gray profile with L-star grey response?

2016-05-24 Thread Marti Maria
Hi, Yes, that one. If you use cmsBuildGamma() you are forced to XYZ PCS, but if you use low-level you can use Lab PCS as well. Regards Marti Maria The LittleCMS project http://www.littlecms.com -Original Message- From: Marco Freudenberger [mailto:marco.freudenber

Re: [Lcms-user] How to create a gray profile with L-star grey response?

2016-05-24 Thread Marti Maria
Right, mark the PCS as Lab and use cmdBuildGamma(NULL, 1.0). You only need to add the white point and this curve. Marti Maria The LittleCMS project http://www.littlecms.com -Original Message- From: Florian Höch [mailto:lists+lcms-u...@hoech.org] Sent: martes, 24 de mayo de 2016 15:19

Re: [Lcms-user] in-place transformation problem

2016-05-05 Thread Marti Maria
Hi, Looks like you are calling cmsDoTransform() with the number of bytes instead of the number of pixels. Regards Marti On May 5, 2016 11:14 AM, Andreas Frisch wrote: > > Hi guys, > > i wrote a gstreamer wrapper element for littlecms ( https:// > bugzilla.gnome.org/attachment.cgi?id=327238 )

Re: [Lcms-user] Recent regression with master

2016-04-29 Thread Marti Maria
Thanks Richard, It is now fixed in GIT. I wonder if you would allow me to use the crayons.icc file for the automated test. That would prevent same error to show up again. Regards Marti Maria The LittleCMS project http://www.littlecms.com -Original Message- From: Richard Hughes

Re: [Lcms-user] Visual C# DLL function declaration

2016-01-19 Thread Marti Maria
Hi, * // cmsDoTransform(hTransform, sourcePtr, targetPtr, bytes); It should not be number of bytes but number of píxels. Also, I think you lock only the scanline, not the whole image. Otherwise it looks fine to me, changing from bytes to scanline pixels should do something. Then it

Re: [Lcms-user] Fwd: Trying to make a UI for colorspaces, have some questions.

2015-09-20 Thread Marti Maria
Hello, >Will the Real sRGB Profile Please Stand Up? >http://ninedegreesbelow.com/photography/srgb-profile-comparison.html This is exactly what I was trying to say. Those profiles are not intended to be used as editing spaces. They differ significantly and will greatly confuse end users if used

Re: [Lcms-user] Fwd: Trying to make a UI for colorspaces, have some questions.

2015-08-30 Thread marti . maria
Quoting Elle Stone : > Standard RGB working spaces are defined by Red, Green, and Blue > primaries, a color space white point and a TRC that is the same in all > three channels, plus chromatic adaptation from the color space white > point to the profile illuminant. Maybe this is what standard wo

Re: [Lcms-user] Trying to make a UI for colorspaces, have some questions.

2015-08-30 Thread marti . maria
Hi, > Okay, so you are suggesting I try to take a set of colors, generated spaced > out over the different channels(so if I were to make 10 samples per > channel, RGB would give me 10³ colors and CMYK would give me 10⁴ colors... > perhaps a bit too many samples). Then transform those colors to X

Re: [Lcms-user] Trying to make a UI for colorspaces, have some questions.

2015-08-29 Thread marti . maria
huge that is not practical to worry the user with implementation details. Gamma curves in those cases are not a single element, but are distributed within many others. Best regards Marti Maria Quoting Boudewijn Rempt : > Hey, weirdly enough Wolthera's mail didn't get through or

Re: [Lcms-user] Issue with 'lumi' tag

2015-08-10 Thread marti . maria
Hi, Sorry. Don't know why, but my last push didn't work. Should be fixed right now. Regards Marti Quoting Vincent Ponchaut : > Hi Marti, > Thanks for the update. I checked out the GIT repository using > subversion and compiled the library using VC2013. Unfortunately, the > sample code I i

Re: [Lcms-user] Issue with 'lumi' tag

2015-08-01 Thread marti . maria
Hello Vicent, This is now fixed in GIT. Thanks for reporting Best regards Marti Vincent Ponchaut escribió: >> > Hi everyone, >> > I am trying to find a generic approach for reading the 'lumi' tag >> > accurately, using Little CMS 2.7. I use ICC profiles that are >> > generated with XRite i1

Re: [Lcms-user] Issue with 'lumi' tag

2015-07-25 Thread marti . maria
Quoting Vincent Ponchaut : > Hi everyone, > I am trying to find a generic approach for reading the 'lumi' tag > accurately, using Little CMS 2.7. I use ICC profiles that are > generated with XRite i1 display pro, and it seems that the X & Z > values of the CIEXYZ 'lumi' value are not 0 (mak

Re: [Lcms-user] Bug Patches reported on Github

2015-06-15 Thread Marti Maria
Gaurav, thanks for your patches. There is a pending big drop that I cannot actually commit because lack of time due to personal reasons. This big drop has many fixes and new functionality. I need git in sync to do the merge. It may take some time. Thanks for your understanding. Marti El dia 16/

Re: [Lcms-user] "writing an advanced brightness/contrast abstract profile" revisited

2015-05-27 Thread marti . maria
>> Now for some advice. > [..] > That sounds pretty attractive, but I'm not sure how to go about that > starting with the user creating a lightness curve -- how do I create > a CLUT 3D table from that curve? Take a look on function cmsCreateBCHSWabstractProfileTHR source code on file cmsvi

Re: [Lcms-user] "writing an advanced brightness/contrast abstract profile" revisited

2015-05-27 Thread marti . maria
>> Oh, I see... You profile forces L* to zero but keeps a* and b*, [...] > Well... I was afraid that that would be the reason. But it means > that we cannot use the recipe in > > https://www.mail-archive.com/lcms-user@lists.sourceforge.net/msg01509.html > > to create a brightness/contrast fil

Re: [Lcms-user] "writing an advanced brightness/contrast abstract profile" revisited

2015-05-26 Thread marti . maria
Oh, I see... You profile forces L* to zero but keeps a* and b*, Right, the interpretation on what something like Lab (0, 10, 20) means, is up to the output profile. Hint: L*=0 does not always map to sRGB=(0,0,0). Try transicc or Photoshop: transicc.exe -i*Lab -o*sRGB LittleCMS ColorSpace conv

Re: [Lcms-user] "writing an advanced brightness/contrast abstract profile" revisited

2015-05-26 Thread marti . maria
Hi, Try "cmsFLAGS_NOWHITEONWHITEFIXUP" On some optimizations, lcms "fixes" white to be pure white by patching the upper node. This is to prevent dispersed dots being spread all over the paper when printing. If that does not work, please send me a sample profile (use cmsSaveProfileToFile)

Re: [Lcms-user] Issue with built in Lab profiles

2015-03-30 Thread marti . maria
Hi Vicent, This is because a requirement of ICC Spec, see: http://color.org/ICC_white_paper_6_v2_and_v4_display_profile_differences.pdf You can get the behavior you wish by setting degree of user adaptation to 0 at the very beginning of your program: cmsSetAdaptationState(0); Additionall

Re: [Lcms-user] Gamut checks when soft proofing from a linear gamma color space

2015-03-28 Thread marti . maria
Hi Elle. Thanks for reporting. Now this is in the TODO list for next release Regards Marti Quoting Elle Stone : > When editing a linear gamma image, the LCMS soft proofing gamut checks > aren't correct. I checked in GIMP and also at the command line using > this command: "tificc -i source_profi

[Lcms-user] ANNOUNCE: lcms2-2.7 released

2015-03-21 Thread marti . maria
standards. For more information, please take a look on: Main site: http://www.littlecms.com Downloads: http://www.littlecms.com/download.html Best regards, Marti Maria The Little CMS project http://www.littlecms.com

Re: [Lcms-user] lcms2.7 release candidate 3 available

2015-03-17 Thread marti . maria
. Otherwise I will do the "official" lcms2-2.7 release this week. Regards Marti Maria The LittleCMS project http://www.littlecms.com -- Dive into the World of Parallel Programming The Go Parallel Website, sp

Re: [Lcms-user] Adobe's Color Engine, GPUs, And Other Rambling

2015-03-10 Thread marti . maria
Quoting Gerhard Fuernkranz : > Create an RGB -> RGB transform and re-sample it on a regular grid, > for instance like below (code is a bit older, still using lcms1, though). Great idea. lcms2 works fine in this way. Please note in lcms2 you can get float, double or "half float" values directly

Re: [Lcms-user] Adobe's Color Engine, GPUs, And Other Rambling

2015-03-06 Thread marti . maria
Quoting Noel Carboni : > Speaking of what the Adobe Color Engine can do... Is anyone > considering porting Little CMS transformations to run on a GPU? :-) Hi, The trick is to use lcms2 to create a 3D Lut and then use the GPU and trilinear interpolation. I think Media Player Classic is doi

Re: [Lcms-user] Emulating Adobe's color engine

2015-03-06 Thread marti . maria
Hi, > Since a disturbingly large fraction of the world consider Adobe > products to be the standard of color management, it would be useful > to have an option that emulates this behavior. My plan is to look at > the tag and replace the curve with a computed look-up table in this > case.

Re: [Lcms-user] Black-ink-only preservation

2015-03-04 Thread marti . maria
Hello Claudiu, Littlecms implements two different strategies to deal with black preservation, in both cases, some colorimetric accuracy may be lost because the profile is used in a way that the vendor didn't intend originally, so don't expect the accuracy to match the normal usage, othe

Re: [Lcms-user] API request

2015-02-26 Thread marti . maria
Sounds good. Let me see if I can add this to 2.17 Regards Marti Quoting Kai-Uwe Behrmann : > Am 25.02.2015 um 23:55 schrieb jcup...@gmail.com: >> On 25 February 2015 at 21:42, Richard Hughes wrote: >>> On 25 February 2015 at 21:09, Elle Stone >>> wrote: It would be nice to have a fun

Re: [Lcms-user] getting the valid double range of a profile

2015-02-14 Thread marti . maria
Hi Alex, This is a nice idea, but not for lcms but for ICC. There is no reliable way for a CMM to guess the real range on profiles using floating point extensions. But ICC spec may add a new tag, and maybe this would makes sense. Next ICC meeting in on March 2, and I will bring there your

Re: [Lcms-user] Color calculator

2015-02-14 Thread marti . maria
profiles for real devices do gamut mapping as well. http://www.color.org/srgbprofiles.xalter Best regards Marti Maria. Quoting Jeff Nova : > Hi there, > > Thanks as always to the community for this wonderful work! > > We would love the ability to send color values, an input profile,

Re: [Lcms-user] lcms2.7 release candidate available

2015-02-08 Thread marti . maria
Hi Noel, Thanks for doing the testing. Regarding the warnings on malloc, yes, I care about that because that would mean vulnerability issues. BUT, please make sure this is on the lcms core engine and not in the testbed. The test bed is not so important because it is not supposed to be use

Re: [Lcms-user] lcms2.7 release candidate available

2015-02-08 Thread marti . maria
Hi Elle, Great! thanks for doing the testing Regards Marti Quoting Elle Stone : > Hi Marti, > > I checked the matrix conversions that were producing erroneous negative > channel values and such with RGB values that were zero and near zero > (http://sourceforge.net/p/lcms/mailman/message/3282159

Re: [Lcms-user] Bug reported on 2014-07-09 11:59:27?

2015-02-06 Thread marti . maria
Hello Mark, This is my fault. Somehow I completely missed your report... so sorry about that. The bug is real and your fix is great. Many thanks for finding the bug, submitting the fix and then checking the release. I'm submitting your changes to git in a few. Best regards Marti Quoting

Re: [Lcms-user] lcms2.7 release candidate available

2015-02-05 Thread marti . maria
Hi John, Login by using github, search for project named mm2/Little-CMS and request Observer status. I will approve the request and I think that's all. Regards Marti Quoting John Jefferies : > On 05/02/2015 15:37, marti.ma...@littlecms.com wrote: >> In addition, lcms2 is now tracked by C

Re: [Lcms-user] Reading lab from 6CLR profiles

2015-02-05 Thread marti . maria
Quoting Dominik Kucma : > Now i need to extend it o read not only from CMYK profiles but also from > other prtr profiles including 6CLR profiles. I'm able to list all named > colors from profile, but I dont know how to get lab values for 6 element Hi, Named color profiles are a different beast.

[Lcms-user] lcms2.7 release candidate available

2015-02-05 Thread marti . maria
important. I would like to fix everything but my bandwidth is quite limited. Travis checks everything each time somebody completes into the git repository, so with this I get less possibilities of breaking the build. Enjoy! Marti Maria The LittleCMS Project http://www.littlecms.com

Re: [Lcms-user] Would You Consider Adding A "Pass Through" Option

2015-02-01 Thread marti . maria
over alpha channel, this is documented and somebody may use this behavior. Workarounds are to use same buffer for input and output or to copy full buffer prior color manage it. Regards Marti Maria The LittleCMS project http://www.littlecms.com Quoting Terence Tay : > Noel, > > I&#

Re: [Lcms-user] Thoughts on error in OpenJDK

2015-01-07 Thread marti . maria
this regard. It is certainly possible that 2.6 would solve the issue. Regards Marti Maria The LittleCMS Project -- Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed

Re: [Lcms-user] Upgrading From lcms1 to lcms2 - Should The Output Be The Same?

2015-01-07 Thread marti . maria
ps closer to what you would obtain with Photoshop, for example. I encourage you to upgrade to lcms2 whatever possible. Regards Marti Maria The LittleCMS project -- Dive into the World of Parallel Programming! The Go

Re: [Lcms-user] Problem with PS output from cmsGetPostScriptCSA

2014-12-26 Thread marti . maria
Quoting Adrian Johnson : > I have modified poppler to embed ICC color spaces in the PostScript > output of pdftops. I am using the cmsGetPostScriptCSA function to > convert PDF ICC profiles to PostScript CSAs. Great > > Testing with lcms 2.6 and this PDF http://www.color.org/version4pdf.pdf > I

Re: [Lcms-user] ColorantTableOutTag

2014-11-07 Thread marti . maria
Hi, Quoting Goya Lin : > For device link construction, if the destination profile has PCS=XYZ > (thus the colorant table clrt will contain PCS values in XYZ), will > the clot in the constructed device link carry the appropriate Lab > PCS values converted from XYZ? lcms only propagates co

Re: [Lcms-user] 1.19 build tweaks

2014-11-02 Thread marti . maria
Hello Tim, Thanks for reporting. Unfortunately branch 1.x is not maintained anymore. It have issues way more serious that what you report. Please upgrade to 2.xx if possible. Regards Marti Quoting Tim Smith : > Hello, > > I’m not sure if the 1.x branch is maintained, but I discovered a coupl

Re: [Lcms-user] Chromatic adaptation using the Bradford method

2014-10-30 Thread marti . maria
Ok, I've checked this with Phil Green, the ICC technical secretary and with Ronnie Luo, who most of you already know. The typo is in Lam's paper. The reference Phil gives is Hunt, R. W. G. 'Reversing the Bradford chromatic adaptation transform', Colour Research and Application 22 pp355-356,

Re: [Lcms-user] Chromatic adaptation using the Bradford method

2014-10-30 Thread marti . maria
Hi, Thanks for reporting, I am bringing this issue to the ICC. Regards Marti Quoting Esben Høgh-Rasmussen Myosotis : > Hello there. > > I am looking into the pit known as chromatic adaptation and noticed > something strange. > > In the ICC specification, Bradford adaptation is based on the

Re: [Lcms-user] LCMS2 problem with converting zero and near-zero channel values

2014-09-15 Thread marti . maria
Hi, > So it's not a platform difference, but a rounding error that affects > all platforms? For 8-bit editing, the error makes no difference. But > for 16-bit editing, 0.0003162277 times 65535 is 20.7240. So it looks > like at 16-bit integer, errors up to nearly 21 can be expected when >

Re: [Lcms-user] LCMS2 problem with converting zero and near-zero channel values

2014-09-15 Thread marti . maria
Hello, IEEE754 single-precision float has only 7 digit precision (log10(2^24) ≈ 7.225), since your conversion goes from gamma 1 to gamma 2 space, the operation you do is rgb^1 -> [Matrix1] -> [Matrix2]^-1 -> rgb^(1/2) Matrix1 and 2 are stored as doubles, but values are evaluated stage by

Re: [Lcms-user] LCMS2 problem with converting zero and near-zero channel values

2014-09-15 Thread marti . maria
Hi Elle, I've tried RedHat 6 with gcc 4.4.7 and a old Mac PowerPC running darwin9 4.0.1, in both cases I got no issues, and the return values were the expected ones. I wonder how you do to get this particular result: > transicc -c0 -t1 -w -o sRGB-V2-g10.icc -i sRGB-V4-g20.icc > > 255 255

Re: [Lcms-user] LCMS2 problem with converting zero and near-zero channel values

2014-09-12 Thread marti . maria
Hi Elle, Thanks for reporting. I was using VS2012 and VS2013 under win7. Next monday will try some linux and mac. If platforms differ, then this may be a nasty issue. Regards Marti. Quoting Elle Stone : > On 09/11/2014 06:32 PM, marti.ma...@littlecms.com wrote: >> >> >> Hi Elle, >> >> So

Re: [Lcms-user] LCMS2 problem with converting zero and near-zero channel values

2014-09-11 Thread marti . maria
I didn't answer to the question on negative zero, so here are some clues. When using floating point, in general is a bad idea to check for equality. The internal representation of floating point numbers makes exact equality problematic. Just as an example 0.1 is periodic in binary represent

Re: [Lcms-user] LCMS2 problem with converting zero and near-zero channel values

2014-09-11 Thread marti . maria
Hi Elle, Sorry, with the profiles you sent and transicc from lcms2-2.6, this does not happen. I got the expected values. Please check the version of lcms2 you are using. BTW, -c0 is not needed in lcms2 and may cause problems. This may be the source of the issue in versions previous to 2.6

Re: [Lcms-user] LCMS2 problem with converting zero and near-zero channel values

2014-09-11 Thread marti . maria
Hi, Could you please send me a private mail with those profiles? I will take a look. Regards Marti Quoting Elle Stone : > Transicc and also tificc both produce oddly wrong results when > converting near-zero and zero RGB channel values from one RGB matrix > profile to a second RGB matrix profi

Re: [Lcms-user] Accessing clut details

2014-09-01 Thread marti . maria
Quoting John Jefferies : > I want to know how many grid points are used in a clut tag. I've got > code to achieve that, but I've had to do some dodgy casts in the > process. The clut details are in _cmsStageCLutData from > lcms2_plugin.h (I'm not using a plugin though), but to use it I've

Re: [Lcms-user] free fallback CMYK profile

2014-08-25 Thread marti . maria
Quoting Graeme Gill : > I'm happy to offer a public domain one based on a chemical > proof measurement set, which is a pretty clean, well behaved > CMYK response. The B2A table conversions are setup for an > sRGB source. > > You can find it here Excellen

Re: [Lcms-user] Looking to translate values between two ICC profiles

2014-08-21 Thread marti . maria
Hi Spencer, This may be easy, but still I don't fully understand what you mean with "value inputs from different input profiles". If this means different combinations of RGB numbers, for example (10, 20, 30) (128, 128, 128) and so, then it is quite easy to solve: Using your favorite image

Re: [Lcms-user] Labv2

2014-08-19 Thread marti . maria
Quoting Roger Breton : > I like it when things get complicated... > > I want to call the function cmsCreateLab2Profile. > But this function takes a pointer to cmsCIExyY parameter. > cmsXYZ is a struct -- I'm in love :( You may use the API documentation: "Creates a Lab -> Lab identity, marking

Re: [Lcms-user] cmsCreateLabProfile does not exist?

2014-08-19 Thread marti . maria
This is a typo in the documentation, thanks for pointing out. Should read "cmsCreateLab4Profile" Regards Marti Quoting Roger Breton : > In the LittleCMS2.6 tutorial.pdf, on page 21, there is reference to > a built-in "Lab" profile. > My search for the function "cmsCreateLabProfile" returns n

Re: [Lcms-user] Defining Range

2014-08-18 Thread marti . maria
Hi The easiest way to do that is to create a color transform going RGB to RGB, just what you want to be in tje LUT. Then, iterate across all nodes and compute value of each node by calling the transform. You need to accommodate ranges, but that is all. i.e., for (r=0; r < nodes; r++)

Re: [Lcms-user] Getting my feet wet with LittleCMS

2014-08-18 Thread marti . maria
Hi Roger, Thanks for let me know. I appreciate you Spanish, but since this is CC to the mailing list, and I think the subject may be interesting for other people as well, I would kindly continue the conversation in English. Hope this is ok to you :-) Ok, about DLL building, this should b

Re: [Lcms-user] Some basic questions about TransICC

2014-07-28 Thread Marti . maria
Spencer, the negative number means the input color is out of gamut, i.e., there is no single color in sRGB color space that could match AdobeRGB (255, 0, 0). If what you want is to obtain some close color, littlecms (not transicc but the library) has ways to do that. transicc always works

Re: [Lcms-user] curveType in AToB tag

2014-07-28 Thread Marti . maria
Hi, Littlecms allows to use arbitrary stages in pipelines, but the ICC spec restricts AToB tags to only certain pipelines and certain stages. In particular, floating point tabulated curves are not supported as part of AtoB tags. You need to read the ICC spec and use only the supported st

Re: [Lcms-user] LittleCMS and Visual C#

2014-07-28 Thread Marti . maria
Hi Roger, Back with you after some trips and vacation, sorry about the delay. It is certainly possible to use lcms from C#, you need to access the CMM as a DLL. Here is a tutorial: http://msdn.microsoft.com/en-us/library/aa288468%28v=vs.71%29.aspx Hope that helps Marti Quoting Roger Bret

Re: [Lcms-user] Getting my feet wet with LittleCMS

2014-07-08 Thread Marti . maria
Hello Roger, The missing headers you report are probably libtiff and libjpeg. Unlike linux, there is no standard installation for those libraries in windows, so I assumed some directories: in particular C:\jpeg-8d and c:\tiff-4.0.2\libtiff You may want to change those in configuration pro

Re: [Lcms-user] 16-bit pixel range

2014-05-21 Thread Marti . maria
Hi, Quoting Terence Tay : > Is it possible to tell LCMS to work in the range of 0..32768 directly > without requiring a conversion? Yes, but you have to write some code. Take a look on the formatters Plug-in, on the plug-in API documentation. Basically you have to write a function capable

Re: [Lcms-user] Dealing with ICC CMYK profile

2014-04-29 Thread Marti . maria
RGB to CMYK by just using a single LUT, try to use linearization tables and non-uniform partitions. If you succeed on that, the problem is mostly solved. Good luck Marti Maria -- "Accelerate Dev Cycles with Auto

Re: [Lcms-user] Consider exporting _cmsAdaptationMatrix()

2014-04-04 Thread Marti . maria
Hi Richard, > I'm trying to create a v4 D65 profile using > cmsCreateProfilePlaceholder() and settings values myself. Fine. > If I understand correctly, all v4 profiles have to have a D50 whitepoint > and a 'chad' adaption tag to convert to and from the real whitepoint. Well, this only applie

Re: [Lcms-user] Bug? conversion value discrepencies if the destination profile is built-in vs on disk

2014-04-03 Thread Marti . maria
Hi Elle, Sorry I didn't explain myself. I mean, when you actually store a built-in profile to disk, you are forced to use the ICC profile format. The ICC profile format has some limitations when storing floating point numbers. That means, if you have a floating point number in memory that is, s

Re: [Lcms-user] Bug? conversion value discrepencies if the destination profile is built-in vs on disk

2014-04-02 Thread Marti . maria
Hi, The ICC file format stores matrix of sRGB as 15.16 fixed point, that means the precision you have is 1 / ((1 << 16) - 1) which is about 1.5e-5 Since evaluating the matrix implies multiplication and addition, the final precision is reduced to 1e-3, that means only two decimal places are accur

Re: [Lcms-user] Preserve Black functionality

2014-03-25 Thread Marti . maria
Hi, > we are trying to use the "Perserve Black functionality" using version 1.18. I *highly* encourage you to upgrade to 2.6, or any 2.x if possible. Black preservation didn't work well in 1. branch. Version 2.x have exactly what you want, selected as extra intents: INTENT_PRESERVE_K_ONLY_P

Re: [Lcms-user] Applying ICC profile

2014-03-25 Thread Marti . maria
Hello Mathieu > > My question is can I simply use tificc (lcms2 2.5 from debian) this way: > > $ tificc -ifile5.jp2.icm rgb.ppm.jp2.tif file5.j2k.tificc.tif Yes, but note this would use the perceptual intent and will convert to sRGB. There is no such thing as "apply an ICC profile". Profiles a

Re: [Lcms-user] Wrong set of CMS_USE_BIG_ENDIAN macro on Mac after upgrading to lcms 2.6

2014-03-24 Thread Marti . maria
> thanks for the quick answer. "macintosh" is not defined and > "__LITTLE_ENDIAN__" is defined. "macintosh" seems to be the old Mac > OS 9 platform macro. With GCC it is "__APPLE__" and "__MACH__" > defined (see http://sourceforge.net/p/predef/wiki/OperatingSystems/). So, if you include Ta

Re: [Lcms-user] Wrong set of CMS_USE_BIG_ENDIAN macro on Mac after upgrading to lcms 2.6

2014-03-24 Thread Marti . maria
Quoting Haiko Kraatz : > Hi, > > when using little CMS 2.6 on Mac (using xcode and build i386 and > x86_64 targets with 10.6 SDK) the macro CMS_USE_BIG_ENDIAN is set to > 1. The problem is the check of > > #if defined(__powerpc__) || defined(__ppc__) || defined(TARGET_CPU_PPC) > > in lcms2.h

Re: [Lcms-user] Version 1 to 2 upgrade

2014-03-21 Thread Marti . maria
Quoting "Freer, David" : > I have been asked to convert our v1.18 code to V2.6 in a quick a > time as possible. I have no experience of either v1 or v2 code so > could someone please point me in the right direction, the LUT code > is particularly problematic? Hi, the conversion is not tri

[Lcms-user] [ANNOUNCE] Little CMS 2.6 released

2014-03-17 Thread Marti . maria
://www.littlecms.com/download.html Best regards, Marti Maria The Little CMS project http://www.littlecms.com -- Marti Maria The Little CMS Project http://www.littlecms.com -- Learn Graph Databases - Download FREE O'Reilly Book &

Re: [Lcms-user] lcms type

2014-03-05 Thread Marti . maria
)) ; cmsHPROFILE hProfile = cmsOpenProfileFromFile(".USWebCoatedSWOP.icc", "r");  cmsHTRANSFORM xform = cmsCreateTransform( hProfile, input_type, hProfile, input_type, INTENT_ABSOLUTE_COLORIMETRIC,0); How do you get the error message? Regards Marti -- Marti Maria Th

Re: [Lcms-user] NULL memory pool on context

2014-03-05 Thread Marti . maria
ists/listinfo/lcms-user -- Marti Maria The Little CMS Project http://www.littlecms.com -- Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce. With Perforce, you get hassle-free workflows. Mer

Re: [Lcms-user] Convert from Grayscale to RGB / CMYK

2014-02-26 Thread Marti Maria
resource for you. Regards Marti -- Marti Maria The Little CMS Project http://www.littlecms.com -- Alexander W. Rolek 303-829-9989 -- Flow-based real-time traffic analytics software. Cisco certified tool. Mo

Re: [Lcms-user] Convert from Grayscale to RGB / CMYK

2014-02-25 Thread marti . maria
r to your question is to just provide a input profile for the gray space and an output one for the RGB or CMYK spaces. But if you are dealing with post script and what you want is to create a gray CSA, just use the psicc tool that will generate the post script resource for you. Regards M

  1   2   3   4   5   6   7   >