Skip to main content

image-transformations

Image resize and background-removal transformations built on Pillow and OpenCV — ratio-safe and fill-crop resizes with white/black/pink/transparent backgrounds, plus kernel- and flood-fill-based background removal.

Installation

pip install entirius-py-image-transformations

Usage

from image_transformations import resize_ratio_safe_bg_white, remove_background_flood_fill

resize_ratio_safe_bg_white("in.jpg", "out.jpg", 500, 500)
remove_background_flood_fill("in.jpg", "out.png")

Development

make install     # sync dependencies (uv)
make check       # lint + format check (ruff)
make test        # test suite (pytest) — smoke transformations over tests/examples/

Development and agent instructions: AGENTS.md.

License

Mozilla Public License 2.0 — see LICENSE.

Metadata

Release files for entirius-py-image-transformations 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for entirius-py-image-transformations 2.0.0
File Size Uploaded
entirius_py_image_transformations-2.0.0.tar.gz 708.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for entirius-py-image-transformations 2.0.0
File Interpreter ABI Platform
entirius_py_image_transformations-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 720.0 kB

Release files / entirius_py_image_transformations-2.0.0.tar.gz

Download URL entirius_py_image_transformations-2.0.0.tar.gz
Size 708.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8cd520fee179d79198d9f75c3e493e8811bf7d845ff3c96c69cb1773c991a5bd
BLAKE2b-256 checksum
How to use checksums
c4c56ae515dbaf527e490bab1688964f0048860c515e14837fb13998f11e2032
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / entirius_py_image_transformations-2.0.0-py3-none-any.whl

Download URL entirius_py_image_transformations-2.0.0-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1e0f43d67982e23ccddc56932c6a76286e49397ac82ce1417c5760cbe65373c7
BLAKE2b-256 checksum
How to use checksums
1266f4101e623b7f19d368eb4afc710d8a2aa7b81d40aec902d33a1e7842d08d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page