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

Stripping of Gamma and color gamut shouldn't happen #410

Open
sgoehler opened this issue Mar 30, 2023 · 0 comments
Open

Stripping of Gamma and color gamut shouldn't happen #410

sgoehler opened this issue Mar 30, 2023 · 0 comments

Comments

@sgoehler
Copy link

Hello,

first, thanks for this great project, it's really useful to me!

One thing that really shouldn't happen is the removal of gamut and gamma information. I know I can turn off stripping additional PNG data, but that will turn off every stripping of additional information.
The issue is that the gamut is essential to the correct displayment of an image. If the gamut is wrong, the colors will be wrong, if display or image differ. Example: a DisplayP3 image is reduced. Now, without gamut information, the image will be shown incorrectly on sRGB screens. On a DisplayP3 screen on the other hand it depends on the decoder, but it's probably safe to assume that it will assume sRGB - which will, again, result in wrong colors.

Gamut and Gamma information is essential to an image, if it exists. It may be safe to remove if the input image is in sRGB color space, but it will result in incorrect colors in any other case.

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

No branches or pull requests

1 participant