Skip to content

Commit

Permalink
Allow 256x256 sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Nov 30, 2016
1 parent 43fc9c9 commit b341898
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PIL/IcoImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("<H", len(sizes))) # idCount(2)
offset = fp.tell() + len(sizes)*16
for size in sizes:
Expand Down

0 comments on commit b341898

Please sign in to comment.