pip install virtualenv
virtualenv --python=python3 venv
- cmd:
call venv/Scripts/activate
pip install -r requeriments.txt
path = os.path.join(cwd, 'COMPRESS_IMAGES') # Name the directory where will be created and saved the images
path_img = os.path.join(cwd, 'IMAGES_BIRLOS') # Match the name of directory where are the images to compress
check_img = os.path.join(check, 'compressed-'+ img_name)
img.save('compressed-'+ img_name, optimize=True, quality=30)
check_img = os.path.join(check, img_name)
img.save(img_name, optimize=True, quality=30)