Support saving PNG cICP chunk (#8704)

This commit is contained in:
Hugo van Kemenade 2025-01-31 13:24:08 +02:00 committed by GitHub
commit 84adbe5da8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1382,7 +1382,7 @@ def _save(
b"\0", # 12: interlace flag b"\0", # 12: interlace flag
) )
chunks = [b"cHRM", b"gAMA", b"sBIT", b"sRGB", b"tIME"] chunks = [b"cHRM", b"cICP", b"gAMA", b"sBIT", b"sRGB", b"tIME"]
icc = im.encoderinfo.get("icc_profile", im.info.get("icc_profile")) icc = im.encoderinfo.get("icc_profile", im.info.get("icc_profile"))
if icc: if icc: