Skip to main content

image-optimizer-cli

A simple CLI application written in Python to optimize images. You can use it from the command line after installing it. Executable name is image-optimizer.

Installation

Run:  pip install image-optimizer-cli

Usage

  • Show help: image-optimizer -h

  • Optimize single image: image-optimizer -p /path/to/image.jpg

  • Optimize all images in a folder: image-optimizer -p /path/to/images/

  • Optimize all images in a folder recursively: image-optimizer -p /path/to/images/ -r

  • Optimize a number of images: image-optimizer -p /path/to/images/ -n 10

  • Optimize with custom quality: image-optimizer -p /path/to/images/ -q 30

Parameters

  • -h, --help: Show help.

  • -p, --path: Path to the image or folder to optimize. Defaults to the current directory if not specified.

  • -r, --recursive: Optimize all images in a folder recursively. Defaults to False if not specified.

  • -n, --number: Optimize a number of images. Defaults to all images in the folder if not specified.

  • -q, --quality: Optimize with custom quality. Defaults to 80 if not specified.

Important notes

  • BACKUP YOUR IMAGES BEFORE OPTIMIZING! All images will be overwritten with optimized versions.

  • This is a simple CLI application. It is not meant to be a full-featured image optimizer.

  • Relative and absolute paths are supported.

  • The quality parameter is a value between 0 and 100.

  • The number parameter is a positive integer. And is not required.

Metadata

Release files for image-optimizer-cli 2022.2.19.post2

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

Source distribution (sdist)

Source distribution for image-optimizer-cli 2022.2.19.post2
File Size Uploaded Provenance Actions
image-optimizer-cli-2022.2.19.post2.tar.gz 14.9 kB Without provenance Details for image-optimizer-cli-2022.2.19.post2.tar.gz

Release files / image-optimizer-cli-2022.2.19.post2.tar.gz

Download URL image-optimizer-cli-2022.2.19.post2.tar.gz
Size 14.9 kB
Tags Source
SHA-256 checksum
How to use checksums
38c2d8e124ff6ed20ca2e6679e36e2d881c3d62b9a1b4735055eb3b919e218ea
BLAKE2b-256 checksum
How to use checksums
a387244a70d1a100750c60de16b1779d5f1aa851b4e9cf70cdec0b0e419f6ea5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Security for image-optimizer-cli 2022.2.19.post2

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