Minimal image I/O library wrapping Pillow and numpy.
Project description
imrw
Minimal image I/O library for Python.
Features
- Read/Write images via
Pillow&numpy. - Clean and simple interface.
imreadalways converts images to RGB and returns auint8numpy array with shapeH x W x 3, regardless of the source format (grayscale, RGBA, CMYK, palette, etc.).imwriteaccepts auint8array with shapeH x W,H x W x 1,H x W x 3, orH x W x 4and always saves as RGB.
Quick Start
pip install imrw
from imrw import imread, imwrite
image = imread("input.png")
imwrite("output.png", image)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
imrw-0.1.4.tar.gz
(3.7 kB
view details)
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
imrw-0.1.4-py3-none-any.whl
(3.2 kB
view details)
File details
Details for the file imrw-0.1.4.tar.gz.
File metadata
- Download URL: imrw-0.1.4.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
485e6fa2b3a70c09d511af95ec6873e2796fa979cdc51925aa2aafd2c68c55a7
|
|
| MD5 |
0de3afb61297bb52c579b0569d3d1531
|
|
| BLAKE2b-256 |
89920038323ff2fa0af8f3fcb497829ed0918d5ae35aceae774305a79853539c
|
File details
Details for the file imrw-0.1.4-py3-none-any.whl.
File metadata
- Download URL: imrw-0.1.4-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6333d53f83c420aeb3f640f29d2a5f64e5e7270d9794817d5b6eddcb344a2bf0
|
|
| MD5 |
acb3d71b19a11d87174a33ba2df017f9
|
|
| BLAKE2b-256 |
513bfbcedb6bfd19937fed39db894a74c63b54a3cef39008920e1095a0762239
|