views:

30

answers:

0

Is there a way to cut out non rectangular areas of an image with Python PIL?

e.g. in this picture I want to exclude all black areas as well as towers, rooftops and poles.
http://img153.imageshack.us/img153/5330/skybig.jpg

I guess the ImagePath Module can do that, but furthermore, how can I read data of e.g. a svg file and convert it into a path?

Any help will be appreciated.


(My sub question is presumably the easier task: how to cut at least a circle of an image?)