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 uses Pillow's RGB conversion 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.5.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.5-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: imrw-0.1.5.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for imrw-0.1.5.tar.gz
Algorithm Hash digest
SHA256 a6546b32a3d598f0b1890bd3c93e6b5077e0c074f1064a44195231380a99c72e
MD5 51cdf6c4f24f3bc634e75191dd8a73bd
BLAKE2b-256 a19289dc78aca3e5cf38a2502e094d25c983d3ff14a1641c968fc01c645650c4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: imrw-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for imrw-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ed63b17417eb1bd135b31121dc51c8d9d7f2dad5be786da4db466ed03a310252
MD5 599ea9591434c75c8cd3df05c10f56fd
BLAKE2b-256 1728d3b709e377005f74af305e8756684b3de2066a55c26109a1ddd580f98b75

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