Skip to content

v1.8 - Better handling of CMYK images with ICC profile, and support for ICO

Latest
Compare
Choose a tag to compare
@zerolab zerolab released this 17 Jan 19:11
· 2 commits to stable/1.8.x since this release
94af7c4

Note

This release converts CMYK images with an ICC profile to sRGB as CMYK is not supported by PNG, WEBP, AVIF and HEIC Pillow encoders.

The issue stems from the fact that when a CMYK image is encoded, it gets converted to RGB, thus resulting in inaccurate colors because Pillow ignores the ICC profile during the conversion.
So, 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.

What's Changed

New Contributors

Full Changelog: v1.7.0...v1.8.0