Skip to content

AnMnv/python-image-compressor

Repository files navigation

Very simple, yet powerful script for local compression of multiple images.

Requirements: pip install Pillow tqdm

Important

compressor_v2_async -- a version of the code that has all previous features + asynchronously processing with the asyncio library + progress bar :)

Important

compressor_v1 -- a version of the code that recursively goes through all folders in the current directory, compresses images and overwrites them.

Important

compressor -- current version of the code iterates through all image files in a given directory, compresses them to a target size, and saves them in an output folder. It reduces image dimensions if needed and adjusts the quality to achieve compression while maintaining a minimum threshold for quality.

Just place all files (.png, .jpg, .jpeg) that you want to compress nearby the compressor.py and run it.

1.66 Mb 156 Kb
00014-3936683554 00014-3936683554

About

python image compressor

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages