This repository contains a small python script for image compression using Pillow, which is a fork of Python Imaging Library (PIL). Both PNG and JPEG -filetypes are supported. Filetype is recognized using python-magic.
The script supports Python versions 3.3, 3.4, 3.5 and 3.6.
Create virtual environment:
$ virtualenv venv -p python3
Activate virtual environment:
$ source venv/bin/activate
Install requirements:
$ pip install -r requirements.txt
$ python3 main.py <path-to-directory>