From 93461e6faa9a5a2676101394bd2fae68040f6b53 Mon Sep 17 00:00:00 2001 From: Eric Soroos Date: Wed, 13 May 2015 03:05:45 -0700 Subject: [PATCH] Ico files are little endian, ref #1204 --- PIL/IcoImagePlugin.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/PIL/IcoImagePlugin.py b/PIL/IcoImagePlugin.py index c4e24d99c21..03f3aef43fb 100644 --- a/PIL/IcoImagePlugin.py +++ b/PIL/IcoImagePlugin.py @@ -48,7 +48,7 @@ def _save(im, fp, filename): width, height = im.size filter(lambda x: False if (x[0] > width or x[1] > height or x[0] > 255 or x[1] > 255) else True, sizes) - fp.write(struct.pack("H", len(sizes))) # idCount(2) + fp.write(struct.pack("