GithubHelp home page GithubHelp logo

Comments (11)

amyspark avatar amyspark commented on June 10, 2024

It only affects CMYK with 8-bit integer depth, 16-bit and float appear to be unaffected.

from little-cms.

mm2 avatar mm2 commented on June 10, 2024

Hello,
I cannot reproduce this with tificc. Could you please give me more details?

Specifically:

  • the profile is used as input or output?
  • which intent?
  • any special flags, black point compensation?
  • to which / from which profile are you doing the transform?

I used from/to built-in sRGB:

tificc -t0 -i AP_Munken_Print_White_260v4.1.icm ramps_cmyk.tif out-14-rgb.tif
tificc -t0 -o AP_Munken_Print_White_260v4.1.icm ramps.tif out-14-cmyk.tif

Both gives same result as 2.13.1

Probably I am missing something important.

from little-cms.

mm2 avatar mm2 commented on June 10, 2024

Checked other intents too, and BPC as well. All works fine to me.

from little-cms.

amyspark avatar amyspark commented on June 10, 2024

the profile is used as input or output?

Input.

which intent?

Perceptual.

any special flags, black point compensation?

Only black point compensation and the fast float plugin enabled.

to which / from which profile are you doing the transform?

sRGB-elle-V2-srgbtrc (output, 8-bit integer depth).

I'll try to bisect now and see if I can trap the regression.

from little-cms.

mm2 avatar mm2 commented on June 10, 2024

The plain CMM without plugin works fine in this configuration. I have to build a tificc with the plugin, maybe the issue is in the plugin. Tomorrow will try to do that.

from little-cms.

amyspark avatar amyspark commented on June 10, 2024

Git bisected between lcms2.13.1 and current HEAD (with a couple edits to build the fast float plugin under Meson-- btw, thanks for having it!)

Seems that one of the optimizations went awry:

❯ git bisect bad
d24a40c9cc685b7145e8082606d5d9384d08e472 is the first bad commit
commit d24a40c9cc685b7145e8082606d5d9384d08e472
Author: Marti Maria <[email protected]>
Date:   Sun Feb 20 16:07:41 2022 +0100

    Fix LUT based optimization on 8 bits

    Most times, optimization was discarded where it could be used. Monotonicity is not needed here. Added a small demo.

 plugins/fast_float/src/fast_8_tethra.c |   6 +-
 plugins/fast_float/testbed/demo_cmyk.c | 151 +++++++++++++++++++++++++++++++++
 2 files changed, 152 insertions(+), 5 deletions(-)
 create mode 100644 plugins/fast_float/testbed/demo_cmyk.c

from little-cms.

mm2 avatar mm2 commented on June 10, 2024

This makes sense.
Seems a bug in the plug-in to me.
The bug was hidden in 2.13.1 because the profile was rejected for the plug-in and handled by the core engine. Now it is accepted, so the bug shows up. Will try to fix it ASAP.

from little-cms.

mm2 avatar mm2 commented on June 10, 2024

This is a nasty bug on the plugin. Only affects 8 bits and CMYK. I will temporally disable CMYK on it 8 bits since the speed improvement is very small.

from little-cms.

mm2 avatar mm2 commented on June 10, 2024

See 328c226

from little-cms.

mm2 avatar mm2 commented on June 10, 2024

Fixed in 2.15

from little-cms.

amyspark avatar amyspark commented on June 10, 2024

@mm2 judging by the commit log, it seems there was no better solution found yet, right?

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.