Read and write images and video across all major formats. Supports scientific and volumetric data.
Actively maintained. Last release 13 days ago, commits in 8 of the last 26 weeks. A safe choice.
pip install imageioIMAGEIO
Website: https://imageio.readthedocs.io/
Imageio is a mature Python library that makes it easy to read and write image and video data. This includes animated images, video, volumetric data, and scientific formats. It is cross-platform, runs on Python 3.11 through 3.14, and is easy to install.
Professional support is available via Tidelift.
Example
Here's a minimal example of how to use imageio. See the docs for more examples.
import imageio.v3 as iio
im = iio.imread('imageio:chelsea.png') # read a standard image
im.shape # im is a NumPy array of shape (300, 451, 3)
iio.imwrite('chelsea.jpg', im) # convert to jpg
API in a nutshell
You just have to remember a handful of functions:
imread() # for reading
imwrite() # for writing
imiter() # for iterating image series (animations/videos/OME-TIFF/...)
improps() # for standardized metadata
immeta() # for format-specific metadata
imopen() # for advanced usage