Skip to main content

Pixel Press

A FastAPI microservice for resizing images to a maximum longest-edge dimension. It preserves aspect ratio, supports common image formats through Pillow, and can recursively process a folder upload into a ZIP while preserving relative paths.

Run

py -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install .
python main.py

Open http://127.0.0.1:8097.

CLI

Resize a directory and all of its subfolders. The output defaults to a sibling directory named <input>_resized:

imgresizer --dir .\photos --max-dimension 2048

Choose an explicit output directory with --output. Add --verbose for debug logs. The CLI logs each processed or skipped file and a final summary.

Publish

Build the wheel and source archive, then upload them with your PyPI credentials:

python -m pip install build twine
python -m build
python -m twine upload dist\*

After publishing, users can install the package with python -m pip install pixel-press and use either the imgresizer CLI or python -m imgresizer.main to start the web service.

API

  • POST /api/resize: multipart fields file, max_dimension; returns the resized image.
  • POST /api/resize-folder: multipart fields files[], max_dimension; returns pixel-press-resized.zip.

Metadata

Release files for pixel-press 1.0.0

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

Built distribution (wheel)

Table of built distributions (wheels) for pixel-press 1.0.0
File Interpreter ABI Platform Actions
pixel_press-1.0.0-py3-none-any.whl Python 3 none any Details for pixel_press-1.0.0-py3-none-any.whl

Release files / pixel_press-1.0.0-py3-none-any.whl

Download URL pixel_press-1.0.0-py3-none-any.whl
Size 12.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
826305122092537c2ce837ac2d1d9604713ddebbf1ea2785725871e788c83e61
BLAKE2b-256 checksum
How to use checksums
cd8b559521bf1da93cb22bd92deac45dd6851e6ffb49a6630b9611617bc748d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Security for pixel-press 1.0.0

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

1.0.0 This release

1 release file 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