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.3.tar.gz (3.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.3-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file imrw-0.1.3.tar.gz.

File metadata

  • Download URL: imrw-0.1.3.tar.gz
  • Upload date:
  • Size: 3.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.3.tar.gz
Algorithm Hash digest
SHA256 c323297f6e6ebbe68fae1c1fe74b94217edbfdf1efb42cf6956f674aa7761108
MD5 676d9711ab2fb8327dafb14bf6b544ac
BLAKE2b-256 5a102c69fe30cfd768f0cd6ca2f2e51f0d4a19ad3ab4eef1a40f0193885080f3

See more details on using hashes here.

File details

Details for the file imrw-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: imrw-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0257320982d3ab87f462fb3df548a30568331c209a20a0a0135edb6888865802
MD5 927364d27691bfe0617f7f8d1e650824
BLAKE2b-256 e557f774826eed1536bdcb45b43a9eacc5edaa5e83b1e548c49a22ad21d89c8a

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