Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there image processing modules for Python 3?

I am facing an image processing task, and I'm using Python 3.2 (on a 64-bit Windows system). All my searches for image processing libraries have come up with are libraries for older versions of Python (most notably PIL, whose current version - 1.1.7 - supports Python 2.7). Does anyone know of an image processing library for Python 3?

By the way, I do not need fancy transformations and heavy stuff. All I need is to open a JPG file and get the image as an RGB-value matrix/list.

Any help will be most appreciated!

like image 915
Tom Avatar asked May 31 '11 13:05

Tom


2 Answers

You can get a source version of PIL which will compile on python3.1 here:

https://github.com/sloonz/pil-py3k

also binary installer for 3.2 and 64-bit windows here: http://www.lfd.uci.edu/~gohlke/pythonlibs/#pil

ref: Image library for Python 3

like image 133
so12311 Avatar answered Sep 21 '22 14:09

so12311


The world is changing and everyone seem to be moving to a brand new library: Pillow. It is a drop-in replacement for PIL but it is alive and does support Python 3.

like image 26
kirelagin Avatar answered Sep 17 '22 14:09

kirelagin