Skip to main content

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)

Source distribution for optimg 0.1.3
File Size Uploaded
optimg-0.1.3.tar.gz 27.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for optimg 0.1.3
File Interpreter ABI Platform
optimg-0.1.3-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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