SciPy/NumPy: read, write images using Python3

T

thegripper

In SciPy / NumPy, the primary way to read and write images is PIL. But
PIL does not yet support Python3. Is there some good way to read,
write, and resize images in a NumPy and Python3 environment?
 
C

Christoph Gohlke

In SciPy / NumPy, the primary way to read and write images is PIL. But
PIL does not yet support Python3. Is there some good way to read,
write, and resize images in a NumPy and Python3 environment?

Try Scikits.image <http://scikits-image.org/>. It uses a plugin system
to read/write images to/from numpy arrays via FreeImage, PyQt, FITS,
GDAL, etc.

Other options:

Unofficial PIL ports, e.g. <https://github.com/sloonz/pil-py3k> or
<http://www.lfd.uci.edu/~gohlke/pythonlibs/>

PythonMagick <http://www.imagemagick.org/download/python/>

GDAL <http://www.gdal.org/> for raster geospatial data formats

PyGame 1.9.2pre <http://www.pygame.org/>, uses SDL_image

PyQt 4 <http://www.riverbankcomputing.co.uk/software/pyqt/>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top