Library for reading and writing a wide range of image formats.
Project description
Imageio is a Python library that provides an easy interface to read and write a wide range of image data, including animated images, volumetric data, and scientific formats. It is cross-platform, runs on Python 2.x and 3.x, and is easy to install.
Main website: http://imageio.github.io
Release notes: http://imageio.readthedocs.org/en/latest/releasenotes.html
Example:
>>> import imageio
>>> im = imageio.imread('astronaut.png')
>>> im.shape # im is a numpy array
(512, 512, 3)
>>> imageio.imwrite('astronaut-gray.jpg', im[:, :, 0])
See the user API or examples for more information.
All distribution files are independent of the Python version. The platform-specific archives contain a few images and the freeimage library for that platform. These are recommended if you do not want to rely on an internet connection at runtime / install-time.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.