Skip to content

jargij/CompressImages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

CompressImages

Python script for automatically reducing size of all JPEG and PNG images in a directory.

Usage: compressimages.py [-h] [--mode {compress,restorebackup,deletebackup}] path

Positional arguments:
path File or directory name

Optional arguments:
-h, --help show this help message and exit
--mode {compress,restorebackup,deletebackup} Mode to run with (default: compress)

  • compress: Compress the image(s).
  • restorebackup: Restore the backup images (valid for directory path only).
  • deletebackup: Delete the backup images (valid for directory path only).

Python 2.7 or later is required.

See Using Python to Reduce JPEG and PNG Image File Sizes Without Loss of Quality (Softwariness.com) for more information.

About

Python script for automatically reducing size of all JPEG and PNG images in a directory

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages