views:

4588

answers:

6

I've recently come across a problem which requires at least a basic degree of image processing, can I do this in Python, and if so, with what?

+3  A: 

There is actually a wonderful Python Imaging Library (PIL). It gives you the ability to alter existing images, including anti-aliasing capabilities, and create new images with text and such. You can also find a decent introductory tutorial in the PIL handbook provided on the aforementioned site.

akdom
Did you use Google at all before asking this question? :-) I'm not saying that you _should_, just that it seems a bit funny to answer your own question in less than a minute.
Richard Franks
The whole idea of this site is to provide (question,answer) pairs which will serve as useful information for someone searching on the subject. It is encouraged that if you find out something useful you did not know before, and it isn't already on the site, that you share it with StackOverflow.
akdom
From the FAQ: It's also perfectly fine to ask and answer your own programming question, but pretend you're on Jeopardy: phrase it in the form of a question.Although, I think this question could easily be answered by anyone in need quickly through a google search...
Martin W
+16  A: 

The best-known library is PIL. However if you are simply doing basic manipulation, you are probably better off with the Python bindings for ImageMagick, which will be a good deal more efficient than writing the transforms in Python.

Jim
+2  A: 

If you are creating a custom image processing effect, you may find PythonPixels useful. http://halfhourhacks.blogspot.com/2008/03/pythonpixels.html It is intended for writing and experimenting with image processing.

A: 

I have done some basic image processing in PIL. You can check it out on my blog

http://prabhatgodse.blogspot.com/2009/10/fun-with-image-processing-in-python.html

pirate
+1  A: 

There's also pycairo, which might be more suitable depending on your needs.

sgraham
A: 

Scipy has a whole package dedicated to image processing: scipy.ndimage. Scipy is in effect the standard general numerical calculations package.

EOL