Optimg - A Simple Image Optimization Tool
Optimg is a command-line tool designed to optimise images for web use. It supports resizing, format conversion, and quality adjustment to help reduce file sizes while maintaining visual fidelity.
Getting Started
To install Optimg, you can use pip:
pip install optimg
Usage
Without any arguments, the tool will use default settings to optimise images in the current directory and save them to an out folder.
optimg
You can customize the optimisation process using various command-line options:
optimg -i path/to/images -o path/to/output --resize-mode c --max-res 1920 --format webp --quality 80 --lossless
You can disable resizing by setting --resize-mode to n (none):
optimg --resize-mode n
For more details on the available options, run:
optimg --help
Note that the --lossless option is only applicable when the output format is set to webp.
The quality parameter will then control the compression level for lossless webp images, where 100 is the most compression.
Metadata
Release files for optimg 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| optimg-0.1.3.tar.gz | 27.7 kB | Without provenance | Details for optimg-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| optimg-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for optimg-0.1.3-py3-none-any.whl |
Total release size: 45.3 kB
Release files / optimg-0.1.3.tar.gz
| Download URL | optimg-0.1.3.tar.gz |
|---|---|
| Size | 27.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
919132fce1935f8c3632e1c3c5a0cfbce9b8691696161464b2e7b566ed308bde
|
|
BLAKE2b-256 checksum How to use checksums |
4e84822859643c4e2c0d8825b1ff3ae9ccf306bc3d201e0bc6b50424e0397077
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.9.5
|
Release files / optimg-0.1.3-py3-none-any.whl
| Download URL | optimg-0.1.3-py3-none-any.whl |
|---|---|
| Size | 17.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
69fe03ed209cc942090e2f0bcee27c84a578e3523ef7c462b86f53d54487873f
|
|
BLAKE2b-256 checksum How to use checksums |
1f0c396f8d607ee34bdde2b92b19b0c72b4a21f3b815907694b21c6c156f10b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.9.5
|
Security for optimg 0.1.3
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.