this script compresses the images, causing them to resize.
to save the compressed images a directory must be created before executing the script
-
Run script with python
python3 imgcompressor.py -d [path directory with images] -n [new path directory]
-
Give permission of execution
chmod u+x imgcompressor.py
-
Run script
./imgcompressor.py -d [path directory with images] -n [new path directory]
-
for more help use
./imgcompressor.py --help
pip3 install Pillow