Skip to content

seandlg/img-squeeze

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

img-squeeze

A simple tool to resize images.

Usage

First, install uv.

Ephemeral Usage

To run img-squeeze without installing it globally, use uvx:

Show Help

uvx --from git+https://github.com/seandlg/img-squeeze -- img-squeeze --help
usage: img-squeeze [-h] [-o OUTPUT_DIR] [--max-dim MAX_DIM] [--jpeg-quality [1-95]] [--png-compression [0-9]] FILE [FILE ...]

A CLI tool to resize and compress JPEG/PNG images.

positional arguments:
  FILE                  One or more image files to process.

options:
  -h, --help            show this help message and exit
  -o, --output-dir OUTPUT_DIR
                        Directory to save processed images. (default: processed_images)
  --max-dim MAX_DIM     Maximum width or height for resized images. (default: 1024)
  --jpeg-quality [1-95]
                        JPEG quality for compression (1-95). (default: 85)
  --png-compression [0-9]
                        PNG compression level (0=none, 9=max). (default: 6)

Compress an Image

uvx --from git+https://github.com/seandlg/img-squeeze -- img-squeeze img.jpg
Resizing img.jpg...
Saved processed_images/img.jpg (JPEG quality: 85)

Processing complete. Output is in 'processed_images'.

Tip

If you use img-squeeze a lot, install it as a tool:

uv tool install git+https://github.com/seandlg/img-squeeze

This enables running img-squeeze in the terminal.

License

MIT

Feature requests

Please open an issue if you have a feature request. I will add features as I need them.

About

A simple tool to resize & compress images.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages