Simon Willison’s Weblog

Subscribe
Atom feed for ico

1 item tagged “ico”

2009

Load Windows ICO files. Apparently PIL has trouble with the most recent versions of the windows .ico format (Vista now embeds PNG images in them)—this clever function deals with the differences and gives back a PIL Image object.

# 17th January 2009, 9:48 pm / pil, python, vista, windows, ico, images, png