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 returns a uint8 numpy array preserving the source mode: H x W for grayscale, H x W x 3 for RGB, H x W x 4 for RGBA. Other PIL modes fall back to RGB.
  • imwrite expects a uint8 array with shape H x W, H x W x 1, H x W x 3, or H 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)

Uploaded Source

Built Distribution

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

imrw-0.1.2-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

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

Hashes for imrw-0.1.2.tar.gz
Algorithm Hash digest
SHA256 8f9ea6c1f9f2240f3d9f212cbf9917b91405cb847e82bcc80b6c7ab673e6b759
MD5 8366f6d5576ad7cfe24234a33cf75f5e
BLAKE2b-256 4cf0884f24aa21479c12140d8d060f79e6334bf0ff30dce128228b29ea6b7b9e

See more details on using hashes here.

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

Hashes for imrw-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0dd4551a14cb06063290f5e8185b53d8faac229486f89547b0fd420f19b2abe6
MD5 86cf87220d04eef8c59ad25c8c4e7b36
BLAKE2b-256 780313a78d0d802c95aa6c58dd65e52b90bf8f6e27fe69360698922d35edc92d

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