Skip to main content

A simple image optimization tool

Project description

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.

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

optimg-0.1.3.tar.gz (27.7 kB view details)

Uploaded Source

Built Distribution

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

optimg-0.1.3-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file optimg-0.1.3.tar.gz.

File metadata

  • Download URL: optimg-0.1.3.tar.gz
  • Upload date:
  • Size: 27.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.5

File hashes

Hashes for optimg-0.1.3.tar.gz
Algorithm Hash digest
SHA256 919132fce1935f8c3632e1c3c5a0cfbce9b8691696161464b2e7b566ed308bde
MD5 da9a5a6ab30592767e45496921cefa48
BLAKE2b-256 4e84822859643c4e2c0d8825b1ff3ae9ccf306bc3d201e0bc6b50424e0397077

See more details on using hashes here.

File details

Details for the file optimg-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: optimg-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.5

File hashes

Hashes for optimg-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 69fe03ed209cc942090e2f0bcee27c84a578e3523ef7c462b86f53d54487873f
MD5 cc7bf81e32554b6200965c1c06f74b5f
BLAKE2b-256 1f0c396f8d607ee34bdde2b92b19b0c72b4a21f3b815907694b21c6c156f10b0

See more details on using hashes here.

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