mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 10:16:17 +03:00
Use _binary instead of struct
This commit is contained in:
parent
976ad5746a
commit
c1d0a00943
|
@ -732,7 +732,7 @@ def _save(im, fp, filename):
|
|||
icc_profile = icc_profile[MAX_DATA_BYTES_IN_MARKER:]
|
||||
i = 1
|
||||
for marker in markers:
|
||||
size = struct.pack(">H", 2 + ICC_OVERHEAD_LEN + len(marker))
|
||||
size = o16(2 + ICC_OVERHEAD_LEN + len(marker))
|
||||
extra += (
|
||||
b"\xFF\xE2"
|
||||
+ size
|
||||
|
|
Loading…
Reference in New Issue
Block a user