-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tests for validating output colors when doing cmyk to cmyk conversion with embedded profiles #4096
Conversation
…ion with embedded profiles + move negate to bottom of the pipeline and add test to validate output colors when doing cmyk to cmyk conversion in combination with `negate`
Thanks for working on this Adriaan, always good to have more testing around CMYK logic. I took a look at the failing test and I think the current expectation is wrong, and that your change produces the correct output, so please go ahead and update the Do you know the source of the |
…ion with embedded profiles + move negate to bottom of the pipeline and add test to validate output colors when doing cmyk to cmyk conversion in combination with `negate` update expected file to match correct output, following lovell#4096 (comment) use license free cmyk profile, following lovell#4096 (comment) Add test for validating output colors when doing cmyk to cmyk conversion with embedded profiles + move negate to bottom of the pipeline and add test to validate output colors when doing cmyk to cmyk conversion in combination with `negate`#
Great, I've updated the expected file as requested and used the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates.
As discussed in #4045, this PR:
Adds a test to validate output colors when doing CMYK to CMYK colourspace transformations with embedded profiles using perceptual intent (the current default). This test might be updated in the future if the default intent changes to
relative
instead ofperceptual
, or if an optional parameter is provided to select the preferred intent for CMYK transformations.Moves the
negate
operation to the bottom of the pipeline, preventing colourspace transformations to be applied to already negated image data resulting in output colors being incorrect.Adds a test that validates (2) by asserting similarity with expected color values when negating in combination with a CMYK colourspace transformation.
Currently, all tests pass except for
negate (png, trans)
. This seems related to premultiplication of the alpha channel as commenting out theresize
operation of the test results in the test passing.@lovell I'm happy to implement any changes to ensure the test passes. Can you give me some pointers on how to tackle negating in combination with premultiplication of the alpha channel if present?