Skip to main content

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.
  • imread always converts images to RGB and returns a uint8 numpy array with shape H x W x 3, regardless of the source format (grayscale, RGBA, CMYK, palette, etc.).
  • imwrite accepts a uint8 array with shape H x W, H x W x 1, H x W x 3, or H x W x 4 and 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)

Uploaded Source

Built Distribution

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

imrw-0.1.4-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

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

Hashes for imrw-0.1.4.tar.gz
Algorithm Hash digest
SHA256 485e6fa2b3a70c09d511af95ec6873e2796fa979cdc51925aa2aafd2c68c55a7
MD5 0de3afb61297bb52c579b0569d3d1531
BLAKE2b-256 89920038323ff2fa0af8f3fcb497829ed0918d5ae35aceae774305a79853539c

See more details on using hashes here.

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

Hashes for imrw-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6333d53f83c420aeb3f640f29d2a5f64e5e7270d9794817d5b6eddcb344a2bf0
MD5 acb3d71b19a11d87174a33ba2df017f9
BLAKE2b-256 513bfbcedb6bfd19937fed39db894a74c63b54a3cef39008920e1095a0762239

See more details on using hashes here.

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