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
n 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:

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

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

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:

Re: [Lcms-user] cmsReadTag

2017-02-04 Thread Marti Maria
shal.PtrToStructure(Pointer, 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

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

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.

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

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

2016-08-17 Thread Marti Maria
nge 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 de ago

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 <lcms-user@lists.sourcefor

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

2016-08-11 Thread Marti Maria
t? 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 12:2

[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] 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

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

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

2016-06-08 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
f 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.sourceforg

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

2016-06-06 Thread Marti Maria
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.littlecms.com

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:// >

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

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

2015-09-21 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] 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

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

2015-08-30 Thread marti . maria
Quoting Elle Stone ellest...@ninedegreesbelow.com: 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.

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

2015-08-29 Thread marti . maria
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 b...@valdyas.org: Hey, weirdly enough Wolthera's mail didn't get through or something

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 vincent.ponch...@hotmail.fr: Hi Marti, Thanks for the update. I checked out the GIT repository using subversion and compiled the library using VC2013.

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 vincent.ponch...@hotmail.fr 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

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

2015-07-25 Thread marti . maria
Quoting Vincent Ponchaut vincent.ponch...@hotmail.fr: 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

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

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 filter

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 cmsvirt.c,

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] 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

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);

[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, sponsored

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

2015-03-10 Thread marti . maria
Quoting Gerhard Fuernkranz nospam...@gmx.de: 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

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. You

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

2015-03-06 Thread marti . maria
Quoting Noel Carboni ncarb...@prodigitalsoftware.com: 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

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,

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 k...@gmx.de: Am 25.02.2015 um 23:55 schrieb jcup...@gmail.com: On 25 February 2015 at 21:42, Richard Hughes hughsi...@gmail.com wrote: On 25 February 2015 at 21:09, Elle Stone

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

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 jhar...@colorhythm.com: 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

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 ellest...@ninedegreesbelow.com: 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

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 john.jeffer...@globalgraphics.com: On 05/02/2015 15:37, marti.ma...@littlecms.com wrote: In

[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] Reading lab from 6CLR profiles

2015-02-05 Thread marti . maria
Quoting Dominik Kucma dku...@gmail.com: 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

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

2015-02-01 Thread marti . maria
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 terence...@gmail.com: Noel, I've run

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

2015-01-07 Thread marti . maria
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 in partnership with Slashdot

Re: [Lcms-user] ColorantTableOutTag

2014-11-07 Thread marti . maria
Hi, Quoting Goya Lin goya@yahoo.com: 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

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 e...@phaseone.com: Hello there. I am looking into the pit known as chromatic adaptation and noticed something strange. In the ICC specification, Bradford adaptation is

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

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 0

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, 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-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 ellest...@ninedegreesbelow.com: On 09/11/2014 06:32 PM, marti.ma...@littlecms.com

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 ellest...@ninedegreesbelow.com: Transicc and also tificc both produce oddly wrong results when converting near-zero and zero RGB channel values from one RGB matrix profile

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
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

Re: [Lcms-user] Accessing clut details

2014-09-01 Thread marti . maria
Quoting John Jefferies john.jeffer...@globalgraphics.com: 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

Re: [Lcms-user] free fallback CMYK profile

2014-08-25 Thread marti . maria
Quoting Graeme Gill gra...@argyllcms.com: 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

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] 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 gr...@videotron.ca: In the LittleCMS2.6 tutorial.pdf, on page 21, there is reference to a built-in Lab profile. My search for the function cmsCreateLabProfile

Re: [Lcms-user] Labv2

2014-08-19 Thread marti . maria
Quoting Roger Breton gr...@videotron.ca: 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

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

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] 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

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

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] Getting my feet wet with LittleCMS

2014-07-09 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

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

2014-05-21 Thread Marti . maria
Hi, Quoting Terence Tay terence...@gmail.com: 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

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 Automated

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 applies

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,

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

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 are

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:

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

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

2014-03-21 Thread Marti . maria
Quoting Freer, David dfr...@xennia.com: 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

[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 Graph

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

2014-03-05 Thread Marti . maria
/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. Merge

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 The Little CMS Project http

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

2014-02-26 Thread Marti Maria
. 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

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

2014-02-25 Thread marti . maria
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 Marti -- Marti

Re: [Lcms-user] Release candidate of lcms2-2.6 now available

2014-02-19 Thread marti . maria
Hello Richard, Excellent! thanks for doing the testing. Best regards Marti Quoting Richard Hughes hughsi...@gmail.com: On 18 February 2014 17:00, marti.ma...@littlecms.com wrote: Another release candidate, this time with the pthreads dependency. Built fine on armv7hl, x86_64, i686 and

Re: [Lcms-user] Release candidate of lcms2-2.6 now available

2014-02-18 Thread marti . maria
be used. Best regards Marti Maria The Little CMS project http://www.littlecms.com -- Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read

Re: [Lcms-user] How to specify the white point in a V2 ICC profile

2014-02-17 Thread marti . maria
Quoting Elle Stone ellest...@ninedegreesbelow.com: On 02/16/2014 07:07 PM, Graeme Gill wrote: Elle Stone wrote: How should the following two quotes from the V2 version of the ICC specifications that is linked to on the color.org specifications page (http://color.org/icc_specs2.xalter) be

Re: [Lcms-user] How to specify the white point in a V2 ICC profile

2014-02-16 Thread marti . maria
Hello Elle, There has been a lot of discussion about this subject and what ICC says is: - Media white point tag is intended to store the chromacity of media, i.e, the measured white of unprinted paper. - On monitor profiles, chromacity of media is always D50, independently of screen white.

Re: [Lcms-user] Release candidate of lcms2-2.6 now available

2014-02-14 Thread marti . maria
in finding the issues the previous candidate had. Best regards Marti Maria The Little CMS project http://www.littlecms.com -- Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps

Re: [Lcms-user] Release candidate of lcms2-2.6 now available

2014-02-14 Thread marti . maria
Quoting Richard Hughes hughsi...@gmail.com: On 14 February 2014 11:22, marti.ma...@littlecms.com wrote: - Unfortunately this makes cmsCreateContext() not thread-safe Can't you just wrap it in a mutex? This is actually my big headache. To do that, I need to add a pthreads dependency.

Re: [Lcms-user] PhotoShop CMYK on monitor

2014-02-13 Thread marti . maria
Hi Victor, · I create a doc CMYK with color profile Iso. · I create a doc RGB with color profile Adobe. · I select color 100% pure cyan. · I paint the docs with this pure cyan. The results are different in monitor. That is the expected behavior. In the CMYK

Re: [Lcms-user] Release candidate of lcms2-2.6 now available

2014-02-13 Thread marti . maria
Hi Richard, Much has been discussed about this new functionality and the impact it will surely have on yet existing apps using THR functions. The main drivers I used to take the decision were: 1) Any client using THR functions and the lib as shared object is basically broken. if a client

Re: [Lcms-user] Release candidate of lcms2-2.6 now available

2014-02-13 Thread marti . maria
Another regression: [...] Note. If I'm not supposed to use cmsWriteTag(NULL) to remove a tag, then I need some other way to do this. And if cmsWriteTag() is supposed to fail, it should probably not make the cmsCloseProfile() explode... A genuine bug, thank you. On 2.6 erasing tags by using

Re: [Lcms-user] PhotoShop CMYK on monitor

2014-02-13 Thread marti . maria
Hello Victor, My results are different from those of Photoshop. My results are: L = 70.0934, A = -28.1484, B = -36.5586 I have checked CS6 and got same Lab numbers in color picker. So lcms and Photoshop agrees on that. The RGB result is different from the one showed in Photoshop. Could

Re: [Lcms-user] Release candidate of lcms2-2.6 now available

2014-02-13 Thread marti . maria
Quoting Bob Friesenhahn bfrie...@simple.dallas.tx.us: I strongly recommend against releasing this new version of the library until it is proven that existing software can be successfully adapted to it. Bob, this is exactly the point of release candidates. If we found it to break

  1   2   3   4   5   >