Skip to main content

entirius-py-image-transformations

Image resize and background-removal functions built on Pillow and OpenCV, part of Entirius, the open-source modular ecommerce platform. Each function reads a source file and writes the transformed image to a target path.

PyPI Python License: MPL-2.0

What it does

  • Ratio-safe resizes with a white, black, pink or transparent background (resize_ratio_safe_bg_*).
  • Fill-and-crop resizes with the same four backgrounds (resize_fill_crop_bg_*).
  • Background removal with a kernel (remove_background_with_kernel()).
  • Background removal by flood fill (remove_background_flood_fill()).

Installation

uv add entirius-py-image-transformations
pip install entirius-py-image-transformations

The import name is image_transformations.

Quick start

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")

Requirements

  • Python 3.11 or newer.
  • pillow, opencv-contrib-python and matplotlib (installed as dependencies).

Documentation

Part of Entirius

This library transforms the product and content images of the Entirius backend service (Volkanos) and its modules.

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: https://github.com/entirius/entirius-py-image-transformations/blob/develop/AGENTS.md

License

Mozilla Public License 2.0 (MPL-2.0) — see https://github.com/entirius/entirius-py-image-transformations/blob/develop/LICENSE.

Metadata

Release files for entirius-py-image-transformations 2.0.1

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.1
File Size Uploaded Provenance Actions
entirius_py_image_transformations-2.0.1.tar.gz 710.3 kB Without provenance Details for entirius_py_image_transformations-2.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 722.2 kB

Release files / entirius_py_image_transformations-2.0.1.tar.gz

Download URL entirius_py_image_transformations-2.0.1.tar.gz
Size 710.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b3ad97fe327343e1b83ad3ef443b7bfee34bc8f5d555823de26eec0e2b62d4f6
BLAKE2b-256 checksum
How to use checksums
547ff8c7a76c406766e0bafbbad5e712b7910bf250a8c4ce65cb9f58834d8374
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","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.1-py3-none-any.whl

Download URL entirius_py_image_transformations-2.0.1-py3-none-any.whl
Size 11.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
10a76b77c8871f388637c08e3b3234e783498e0dc5df999a1f96ac960a91d5b8
BLAKE2b-256 checksum
How to use checksums
ea0a27c80abe486afc9ad8ea2e2514593b06fc302c64b203f0ae92feb0a27142
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for entirius-py-image-transformations 2.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.0.1 This release

2 release files No provenance

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