Skip to content

Commit

Permalink
Support saving cICP chunk
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Jan 19, 2025
1 parent cf7dd2f commit 4272448
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PIL/PngImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1382,7 +1382,7 @@ def _save(
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"))
if icc:
Expand Down

0 comments on commit 4272448

Please sign in to comment.