Coder Social home page Coder Social logo

Comments (5)

mm2 avatar mm2 commented on May 28, 2024

IMHO anything that's undocumented (and accessible) is "use at your own risk." It could go away or change at any time and is not supported. Those functions exist because testing or other reasons but are not intended for normal operation.

Validating this would encourage the use of other undocumented functions. And I dont want this because it means supporting bug reports, adding test cases etc.

from little-cms.

DominikDeak avatar DominikDeak commented on May 28, 2024

That's rather unfortunate. A few years ago I asked if there is a way to access the parametric constants for tone curves. I was suggested to use cmsGetToneCurveParams, but evidently that's no longer available in v2.16.

#218

Having said that, is using cmsGetToneCurveSegment to query the Params the correct alternative approach?

from little-cms.

mm2 avatar mm2 commented on May 28, 2024

That's rather unfortunate.

Why? You were told a function would be added to development sources

I will add this to the development sources, thanks for the idea!

It was on testing from 2.11 to 2.16 where it finally made its way to the public API, with a small change to fix a defect, which was the function didn't work for multi-segment. This is the normal developing cycle.

Please remember this is open source under MIT license, basically you have the code for free but with no support. That means you need to do a check when upgrading and keep track of this kind of things. If this does not fit your needs, I would recommend to go to any commercial library.

from little-cms.

mm2 avatar mm2 commented on May 28, 2024

Closing it as not planned

from little-cms.

DominikDeak avatar DominikDeak commented on May 28, 2024

Please don't take my above comment the wrong way. I was merely saying it's an unfortunate situation for us that relied on those undocumented features. And I agree, the responsibility (and the consequences) for using private APIs rests on our shoulders. I did not intend lay blame on you or anyone for these breaking changes, other than myself.

You were told a function would be added to development sources

It was on testing from 2.11 to 2.16 where it finally made its way to the public API

I'm sorry, I must have missed this change in the public API. I skimmed through the ChangeLog, but I could not find notes about new features that queries Tone Curve parametric constants. I'm assuming cmsGetToneCurveSegment is now the correct way to get this data?

Please remember this is open source under MIT license, basically you have the code for free but with no support. That means you need to do a check when upgrading and keep track of this kind of things. If this does not fit your needs, I would recommend to go to any commercial library.

Yes, I am fully aware. And I am actually very grateful for the effort you put into maintaining this project. Thank you!

from little-cms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.