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.1.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.1-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: imagectl-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 f4e6aaa14be83fc4031d420687c36f43130670d840799f402283eb7b42f9f48b
MD5 3e4359ab1de5aa806f38524a7eef7d7f
BLAKE2b-256 3cc5b0c42bd343e095c0a336ea8d7d903f507e609607042baf521a176b1f4efb

See more details on using hashes here.

Provenance

The following attestation bundles were made for imagectl-0.1.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: imagectl-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b65cca91672f45cb22c12a396357ec42e8098d9b220230c883db3486917a8012
MD5 15115899f882da00bf7d5d01d859d224
BLAKE2b-256 4dbb241bfc7c574bdd21f0a85730f626e09fb39a915edc3faf3bd2b24c417e7a

See more details on using hashes here.

Provenance

The following attestation bundles were made for imagectl-0.1.1-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