Skip to content

xalonious/image_tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Image tool

A simple Python command-line tool for converting and compressing image files using Pillow.
It supports many common image formats and provides sensible default compression settings that can significantly reduce file size with little or no visible quality loss.


Requirements

Install Pillow before using the tool:

pip install pillow

Usage

The tool supports two actions: convert and compress.

Convert an image

Convert an image to a different format.

python image_tool.py convert -f input.webp -e png -o output.png

Compress an image

Compress an image using default settings that reduce file size with minimal or no visible quality loss.

python image_tool.py compress -f input.png

If no output file is provided, the tool will automatically create one using _compressed.

You can also specify a custom output file:

python image_tool.py compress -f input.jpg -o input_small.jpg

enjoy

About

Simple image tool written in python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages