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.
imreadreturns auint8numpy array preserving the source mode:H x Wfor grayscale,H x W x 3for RGB,H x W x 4for RGBA. Other PIL modes fall back to RGB.imwriteexpects auint8array with shapeH x W,H x W x 1,H x W x 3, orH x W x 4.
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.2.tar.gz
(2.3 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.2-py3-none-any.whl
(2.0 kB
view details)
File details
Details for the file imrw-0.1.2.tar.gz.
File metadata
- Download URL: imrw-0.1.2.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f9ea6c1f9f2240f3d9f212cbf9917b91405cb847e82bcc80b6c7ab673e6b759
|
|
| MD5 |
8366f6d5576ad7cfe24234a33cf75f5e
|
|
| BLAKE2b-256 |
4cf0884f24aa21479c12140d8d060f79e6334bf0ff30dce128228b29ea6b7b9e
|
File details
Details for the file imrw-0.1.2-py3-none-any.whl.
File metadata
- Download URL: imrw-0.1.2-py3-none-any.whl
- Upload date:
- Size: 2.0 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 |
0dd4551a14cb06063290f5e8185b53d8faac229486f89547b0fd420f19b2abe6
|
|
| MD5 |
86cf87220d04eef8c59ad25c8c4e7b36
|
|
| BLAKE2b-256 |
780313a78d0d802c95aa6c58dd65e52b90bf8f6e27fe69360698922d35edc92d
|