By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,544 Members | 1,437 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,544 IT Pros & Developers. It's quick & easy.

PIL and windows ico files

P: n/a
Hi all,

I'm trying to use PIL to convert windows icon files to PNG. This mostly
works, but it doesn't preserve the transparancy. Any tips or tricks on how
to preserve the transparancy?

Currently, my code looks as follows:

from PIL import Image
from PIL import IcoImagePlugin
from PIL import GifImagePlugin
Image._initialized = 1
im = 'xplane.ico' ) 'xplane.gif' )

thanks in advance,
Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.