-
Notifications
You must be signed in to change notification settings - Fork 207
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
When exporting to Webp, the ColorProfile is getting removed #384
Comments
Just had to fix it with |
Thanks. Anyone have energy to create a PR? I'd be happy to merge one. |
closes #410 |
@tonimelisma Can you review? |
Merged |
I'm confused: it seems the PR was merged and then reverted. I'm still having this issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If the input image already has an ICC Profile embedded into it, the ICC Profile is getting dropped when converting to Webp. This happens if we don't make a call to OptimizeICCProfile . The OptimizeICCProfile function updates the variable optimizedIccProfile.
While exporting a Webp, govips looks at the params for ICC Profile. If we don't send an ICC Profile in the export params and the optimizedIccProfile variable is not set, then the ICC Profile of the image is dropped.
Problematic code:
There should be a check here if the image has it's own ICC profile and it shouldn't be dropped.
The text was updated successfully, but these errors were encountered: