Skip to main content

Read and write images and video across all major formats. Supports scientific and volumetric data.

Project description

# IMAGEIO

[![CI](https://github.com/imageio/imageio/workflows/CI/badge.svg)](https://github.com/imageio/imageio/actions/workflows/ci.yml) [![CD](https://github.com/imageio/imageio/workflows/CD/badge.svg)](https://github.com/imageio/imageio/actions/workflows/cd.yml) [![codecov](https://codecov.io/gh/imageio/imageio/branch/master/graph/badge.svg?token=81Zhu9MDec)](https://codecov.io/gh/imageio/imageio) [![Docs](https://readthedocs.org/projects/imageio/badge/?version=latest)](https://imageio.readthedocs.io)

[![Supported Python Versions](https://img.shields.io/pypi/pyversions/imageio.svg)](https://pypi.python.org/pypi/imageio/) [![PyPI Version](https://img.shields.io/pypi/v/imageio.svg)](https://pypi.python.org/pypi/imageio/) ![PyPI Downloads](https://img.shields.io/pypi/dm/imageio?color=blue) [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.1488561.svg)](https://doi.org/10.5281/zenodo.1488561)

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.10+, and is easy to install.

Professional support is available via [Tidelift](https://tidelift.com/funding/github/pypi/imageio).

## Example

Here’s a minimal example of how to use imageio. See the docs for [more examples](https://imageio.readthedocs.io/en/stable/examples.html).

`python 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:

`python 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 `

See the [API docs](https://imageio.readthedocs.io/en/stable/reference/index.html) for more information.

## Features

## Dependencies

Minimal requirements:

  • Python 3.10+

  • NumPy

  • Pillow >= 8.3.2

Optional Python packages:

## Security contact information

To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.

## ImageIO for enterprise

Available as part of the Tidelift Subscription.

The maintainers of imageio and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. ([Learn more](https://tidelift.com/subscription/pkg/pypi-imageio?utm_source=pypi-imageio&utm_medium=referral&utm_campaign=readme))

## Details

The core of ImageIO is a set of user-facing APIs combined with a plugin manager. API calls choose sensible defaults and then call the plugin manager, which deduces the correct plugin/backend to use for the given resource and file format. The plugin manager adds sensible backend-specific defaults and then calls one of ImageIOs many backends to perform the actual loading. This allows ImageIO to take care of most of the gory details of loading images for you, while still allowing you to customize the behavior when and where you need to. You can find a more detailed explanation of this process in [our documentation](https://imageio.readthedocs.io/en/stable/user_guide/overview.html).

## Contributing

We welcome contributions of any kind. Here are some suggestions on how you are able to contribute

  • add missing formats to the format list

  • suggest/implement support for new backends

  • report/fix any bugs you encounter while using ImageIO

To assist you in getting started with contributing code, take a look at the [development section](https://imageio.readthedocs.io/en/stable/development/index.html) of the docs. You will find instructions on setting up the dev environment as well as examples on how to contribute code.

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.

Source Distribution

imageio-2.37.3.tar.gz (389.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

imageio-2.37.3-py3-none-any.whl (317.6 kB view details)

Uploaded Python 3

File details

Details for the file imageio-2.37.3.tar.gz.

File metadata

  • Download URL: imageio-2.37.3.tar.gz
  • Upload date:
  • Size: 389.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for imageio-2.37.3.tar.gz
Algorithm Hash digest
SHA256 bbb37efbfc4c400fcd534b367b91fcd66d5da639aaa138034431a1c5e0a41451
MD5 17a47a9ee028df45c42b27e15fbd6816
BLAKE2b-256 b18493bcd1300216ea50811cee96873b84a1bebf8d0489ffaf7f2a3756bab866

See more details on using hashes here.

Provenance

The following attestation bundles were made for imageio-2.37.3.tar.gz:

Publisher: cd.yml on imageio/imageio

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file imageio-2.37.3-py3-none-any.whl.

File metadata

  • Download URL: imageio-2.37.3-py3-none-any.whl
  • Upload date:
  • Size: 317.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for imageio-2.37.3-py3-none-any.whl
Algorithm Hash digest
SHA256 46f5bb8522cd421c0f5ae104d8268f569d856b29eb1a13b92829d1970f32c9f0
MD5 d1e742a84930fea99f15997966941ba9
BLAKE2b-256 49fa391e437a34e55095173dca5f24070d89cbc233ff85bf1c29c93248c6588d

See more details on using hashes here.

Provenance

The following attestation bundles were made for imageio-2.37.3-py3-none-any.whl:

Publisher: cd.yml on imageio/imageio

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page