From a618e2ca1cd1b761ffaa6ea9c95b25b92f597d9d Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Tue, 7 Apr 2020 21:13:40 +1000 Subject: [PATCH] Fixed big-endian saving --- src/PIL/IcnsImagePlugin.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/PIL/IcnsImagePlugin.py b/src/PIL/IcnsImagePlugin.py index 660de2b92..963ad199e 100644 --- a/src/PIL/IcnsImagePlugin.py +++ b/src/PIL/IcnsImagePlugin.py @@ -336,21 +336,21 @@ def _save(im, fp, filename): ) # Header - fp.write(struct.pack("i", MAGIC)[::-1]) - fp.write(struct.pack("i", file_size)[::-1]) + fp.write(struct.pack("