-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Force conversion to sRGB for CMYK images with ICC profile
CMYK is not supported by PNG, WEBP, AVIF and HEIC Pillow encoders. When a CMYK image is encoded, it is converted to RGB but this conversion results in inaccurate colors because Pillow ignores the ICC profile when performing the conversion. As a workaround, we manually force an accurate conversion to RGB _before_ encoding the image. This results in a much more accurate representation of the original CMYK image.
- Loading branch information
Showing
2 changed files
with
162 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters