views:

615

answers:

1

How do I generate circular image thumbnails using PIL? The space outside the circle should be transparent.

Snippets would be highly appreciated, thank you in advance.

+11  A: 
Nadia Alramli
Great! And how about outputting gif instead of png? I guess gif doesn't handle alpha, does it?
ohnoes
Gif doesn't support alpha channel transparency. It only support setting one color as transparent. However, I made the necessary adjustment to output the result in gif.
Nadia Alramli