mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +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:]
|
icc_profile = icc_profile[MAX_DATA_BYTES_IN_MARKER:]
|
||||||
i = 1
|
i = 1
|
||||||
for marker in markers:
|
for marker in markers:
|
||||||
size = struct.pack(">H", 2 + ICC_OVERHEAD_LEN + len(marker))
|
size = o16(2 + ICC_OVERHEAD_LEN + len(marker))
|
||||||
extra += (
|
extra += (
|
||||||
b"\xFF\xE2"
|
b"\xFF\xE2"
|
||||||
+ size
|
+ size
|
||||||
|
|
Loading…
Reference in New Issue
Block a user