v1.8 - Better handling of CMYK images with ICC profile, and support for ICO
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
- Fix sphinx build errors by @zerolab in #140
- Remove old imghdr patch test by @Stormheg in #143
- test_detect_faces: sort array for determinism by @stephanlachnit in #135
- Add
transform_colorspace_to_srgb
operation and use it to fix inaccurate colors when saving specific image files by @Stormheg in #142 - Add support for ICO images by @RealOrangeOne in #141
New Contributors
Full Changelog: v1.7.0...v1.8.0