Skip to main content

Resize/mask/compress images (PNG/JPEG) via Streamlit + Pillow.

Project description

🖼️ imagectl — Batch Resize, Mask & Compress (Web UI)

imagectl is a lightweight and fast batch image processing tool with a clean Streamlit Web UI.
Resize (px or cm with DPI), apply circle/ellipse masks, smart compression to target size, and range‑based selection by filename — then download all results as a single ZIP.

Perfect for creators, e‑commerce, thumbnails, social media, and bulk optimization.


✨ Features

  • Resize using px or cm @ DPI
  • Mask: Circular or elliptical cut‑out (with transparency)
  • Compression: Auto‑adjusts JPEG quality to reach max KB
  • Supported formats: JPG / PNG / WebP / BMP
  • Smart range filter based on numbers in filenames:
    • Examples: 5, 2-6, -4, 7-, 1,3,6-9,12-
  • Auto‑index option for files without numbers (1..N)
  • Export all results as a single ZIP

🚀 Quick Start

Recommended: use uv for fast development, or pip normally.
(PyPI install section will be added after publishing)

Using uv (local dev)

git clone https://github.com/TamerOnLine/imagectl.git
cd imagectl
uv sync
uv run imagectl --port 8600

Using pip (local dev)

git clone https://github.com/TamerOnLine/imagectl.git
cd imagectl
pip install -e .
imagectl --port 8600

Default port: 8501. Use --port 8600 to change.


🧑‍💻 CLI / Commands

Two console scripts are provided:

  • imagectl → Launch Web UI (Streamlit)
  • imagectl-web → Same as above (explicit Web name)

Examples:

imagectl
imagectl --port 8600
imagectl-web --port 9000

Then open:

http://localhost:8501
# or
http://localhost:8600

📥 Usage (inside UI)

  1. Upload one or multiple images (JPG/PNG/WebP/BMP)
  2. Choose size: px or cm + DPI
  3. Optional: Circle or Ellipse mask
  4. Set Max size (KB) for smart compression
  5. Optional: enter a Range to filter which images to process
    • 5, 2-6, -4, 7-, 1,3,6-9,12-
  6. Click Process ✨ and download the ZIP

If filenames lack numbers, enable Auto‑index to number them by upload order.


🖼️ Screenshots / Demo (Placeholders)

Upload & Preview Settings Download ZIP
(screenshot 1) (screenshot 2) (screenshot 3)

Add a short GIF (6–10s) showing: upload → adjust → download.
Suggested size: 900×500
Filename: demo.gif


🗺️ Roadmap

  • Initial release: resize/mask/compress + ranges
  • CLI batch processing (no UI)
  • Improved PNG & WebP compression
  • Basic filters (sharpness / contrast / bg remove)
  • API mode for integration

🤝 Contributing

Contributions are welcome!

  1. Open an issue
  2. Fork the repo
  3. Create a feature branch
  4. Submit a PR

🪪 License

MIT — see LICENSE


🔗 Links

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

imagectl-0.1.0.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

imagectl-0.1.0-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file imagectl-0.1.0.tar.gz.

File metadata

  • Download URL: imagectl-0.1.0.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for imagectl-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e18c7c65dcfd32b0aaf55f89b74460c79044026a71cef24d6358f77608c76ead
MD5 6d5ea1d08b84fa313841f127127fb838
BLAKE2b-256 bbe4292449c96544e543d699006b348875d5a51aed219a5fb74b8b774ca2493b

See more details on using hashes here.

Provenance

The following attestation bundles were made for imagectl-0.1.0.tar.gz:

Publisher: publish.yml on TamerOnLine/imagectl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file imagectl-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: imagectl-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for imagectl-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e5a454d66bd2e1ed22341d5d453508ebcd1c6f2a9d09b350e9be6d9a3f8803c7
MD5 b6ef07a4d09c2f17408b7915e42d00b0
BLAKE2b-256 c7a77ac54d1c8b9ff6706e844cb888a066f6f57c62516fb8efb9f26946c2577a

See more details on using hashes here.

Provenance

The following attestation bundles were made for imagectl-0.1.0-py3-none-any.whl:

Publisher: publish.yml on TamerOnLine/imagectl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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