From b341898c7f53d5cc776bd601961500c95e0c54a9 Mon Sep 17 00:00:00 2001 From: hugovk Date: Wed, 30 Nov 2016 16:00:14 +0200 Subject: [PATCH] Allow 256x256 sizes --- PIL/IcoImagePlugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PIL/IcoImagePlugin.py b/PIL/IcoImagePlugin.py index 9d4ebb6e8..5dbf31f9f 100644 --- a/PIL/IcoImagePlugin.py +++ b/PIL/IcoImagePlugin.py @@ -47,7 +47,7 @@ def _save(im, fp, filename): (64, 64), (128, 128), (256, 256)]) 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) + x[0] > 256 or x[1] > 256) else True, sizes) fp.write(struct.pack("