Read and write images and video across all major formats. Supports scientific and volumetric data.
Project description
# IMAGEIO
[](https://github.com/imageio/imageio/actions/workflows/ci.yml) [](https://github.com/imageio/imageio/actions/workflows/cd.yml) [](https://codecov.io/gh/imageio/imageio) [](https://imageio.readthedocs.io)
[](https://pypi.python.org/pypi/imageio/) [](https://pypi.python.org/pypi/imageio/)  [](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.9+, 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
Simple interface via a concise set of functions
Easy to [install](https://imageio.readthedocs.io/en/stable/getting_started/installation.html) using Conda or pip
Few core dependencies (only NumPy and Pillow)
Pure Python, runs on Python 3.9+, and PyPy
Cross platform, runs on Windows, Linux, macOS
More than 295 supported [formats](https://imageio.readthedocs.io/en/stable/formats/index.html)
Read/Write support for various [resources](https://imageio.readthedocs.io/en/stable/getting_started/requests.html) (files, URLs, bytes, FileLike objects, …)
High code quality and large test suite including functional, regression, and integration tests
## Dependencies
Minimal requirements:
Python 3.9+
NumPy
Pillow >= 8.3.2
Optional Python packages:
imageio-ffmpeg (for working with video files)
pyav (for working with video files)
tifffile (for working with TIFF files)
itk or SimpleITK (for ITK plugin)
astropy (for FITS plugin)
[imageio-flif](https://codeberg.org/monilophyta/imageio-flif) (for working with [FLIF](https://github.com/FLIF-hub/FLIF) image files)
## 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file imageio-2.37.2.tar.gz.
File metadata
- Download URL: imageio-2.37.2.tar.gz
- Upload date:
- Size: 389.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0212ef2727ac9caa5ca4b2c75ae89454312f440a756fcfc8ef1993e718f50f8a
|
|
| MD5 |
64b0cc407f918cb632e5e8d5af41521e
|
|
| BLAKE2b-256 |
a36f606be632e37bf8d05b253e8626c2291d74c691ddc7bcdf7d6aaf33b32f6a
|
Provenance
The following attestation bundles were made for imageio-2.37.2.tar.gz:
Publisher:
cd.yml on imageio/imageio
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
imageio-2.37.2.tar.gz -
Subject digest:
0212ef2727ac9caa5ca4b2c75ae89454312f440a756fcfc8ef1993e718f50f8a - Sigstore transparency entry: 667395290
- Sigstore integration time:
-
Permalink:
imageio/imageio@0d20b85f209920efbc1d8206fcb31a96ad76013f -
Branch / Tag:
refs/heads/master - Owner: https://github.com/imageio
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@0d20b85f209920efbc1d8206fcb31a96ad76013f -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file imageio-2.37.2-py3-none-any.whl.
File metadata
- Download URL: imageio-2.37.2-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad9adfb20335d718c03de457358ed69f141021a333c40a53e57273d8a5bd0b9b
|
|
| MD5 |
491c970f4ab56f0e7f69df4cb1516a0a
|
|
| BLAKE2b-256 |
fbfe301e0936b79bcab4cacc7548bf2853fc28dced0a578bab1f7ef53c9aa75b
|
Provenance
The following attestation bundles were made for imageio-2.37.2-py3-none-any.whl:
Publisher:
cd.yml on imageio/imageio
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
imageio-2.37.2-py3-none-any.whl -
Subject digest:
ad9adfb20335d718c03de457358ed69f141021a333c40a53e57273d8a5bd0b9b - Sigstore transparency entry: 667395293
- Sigstore integration time:
-
Permalink:
imageio/imageio@0d20b85f209920efbc1d8206fcb31a96ad76013f -
Branch / Tag:
refs/heads/master - Owner: https://github.com/imageio
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@0d20b85f209920efbc1d8206fcb31a96ad76013f -
Trigger Event:
workflow_dispatch
-
Statement type: