SciPy/NumPy: read, write images using Python3

Christoph Gohlke cjgohlke at gmail.com
Sun Oct 16 01:05:17 EDT 2011


On Oct 9, 8:43 am, thegripper <edcjo... at comcast.net> wrote:
> 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/>



More information about the Python-list mailing list