Skip to content
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

LibGfx/PNG: Add support for the cICP chunk #3502

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

LucasChollet
Copy link
Contributor

First patch set toward fixing #3498. I left a few fixme in the code (like supporting more points) and also I wasn't able to import the test from the issue (but the two others cicp-related tests were fine).
I'll try to fix both the importer issue and adding support fore more code points when I come back in a few days.

Copy link
Contributor

@trflynn89 trflynn89 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good to me, but needs to be run through clang-format.

BTW I stumbled upon the cICP PR in libpng after this issue was opened, kudos to you for sticking through that 😅 !

Libraries/LibGfx/ImageFormats/PNGLoader.cpp Outdated Show resolved Hide resolved
This introduces a new API in ImageDecoderPlugins that allow an image
decoder to return a CICP struct. Also, we use this API in
ImageDecoder::color_space() to create a color space corresponding to
these CICP.
@LucasChollet
Copy link
Contributor Author

Oh, looks like I need to set up the commit hooks on my laptop.

BTW I stumbled upon the cICP PR in libpng after this issue was opened, kudos to you for sticking through that 😅 !

Thanks, I really thought that it would be a small and easy PR, it turned out to be a whole experience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants