Version0.1.1
Revision3
Size10.7 MB
LicenseMIT
Confinementstrict
Basecore18

CLI tool for encoding and compressing images for optimal web use.


Written in Python utilizing the Pillow imaging library. Supported image types include JPEG, PNG, and WEBP. Images saved with the same name as the source file are given a unique name.

Usage

Pass in at least an input file and image format.

Resize test.jpeg to 1000 x 1000, set quality to 75, and save file as test-1000.jpeg:

$ imgpress test.jpeg -f JPEG -r 1000 1000 -q 75 -o test-1000.jpeg

Resize test.jpeg to 1000 wide while preserving aspect ratio, encode to WEBP format, and set quality to 65:

$ imgpress image.jpeg -f WEBP -r 1000 0 -q 65

Update History

0.1.1 (3)
13 Dec 2025, 09:47 UTC

Published3 Jun 2020, 22:49 UTC

Last updated8 Jun 2020, 16:54 UTC

First seen13 Dec 2025, 09:47 UTC