I'm looking to create favicon.ico
files programatically from Python, but PIL only has support for reading ico
files.
From stackoverflow
Hank Gay
-
Perhaps the following would work:
- Generate your icon image using PIL
- Convert the image to .ico format using the python interface to ImageMagick, PythonMagick
I have not tried this approach. The ImageMagick convert command line program was able to convert a .png file to .ico format, so at least ImageMagick supports the .ico format.
From codeape -
I don't know if this applies for all cases, but on WinXP an .ico can be a bmp of size 16x16, 32x32 or 64x64. Just change the extension to ico from bmp and you're ready to go.
Hope this helps
thing2k
From thing2k -
According to Wikipedia modern browsers can handle favicons in PNG format, so maybe you could just generate that?
Alternatively the ICO article describes the format...
From Douglas Leeder
0 comments:
Post a Comment