Skip to content

Commit

Permalink
Support saving PNG cICP chunk (#8704)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Jan 31, 2025
2 parents e4f2a4a + 4272448 commit 84adbe5
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 84adbe5

Please sign in to comment.