-
-
Notifications
You must be signed in to change notification settings - Fork 862
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 support for decoding tiff images with CieLab color space #2127
Conversation
src/ImageSharp/Formats/Tiff/PhotometricInterpretation/CieLabPlanarTiffColor{TPixel}.cs
Outdated
Show resolved
Hide resolved
src/ImageSharp/Formats/Tiff/PhotometricInterpretation/CieLabTiffColor{TPixel}.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Günther Foidl <gue@korporal.at>
where TPixel : unmanaged, IPixel<TPixel> | ||
{ | ||
// Note: The image from MagickReferenceDecoder does not look right, maybe we are doing something wrong | ||
// converting the pixel data from Magick.NET to our format with CieLab? |
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.
What's happening here?
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.
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.
Ah right.... Yep,
IMagickImage<T>
contains ColorSpace
enum which we are blindly ignoring when converting. I always assumed they did the same as us and converted color spaces on decode.
It looks like we should be checking that first and converting on the fly.
@dlemstra Am I correct here?
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.
Just checked the ref vs input. Looks great! 👍 Nice work!
Prerequisites
Description
This PR adds support for decoding Tiff images with the CieLab color space.