Compress grey scale image files to selected quality.
This algorithm uses Discrete Cosine Transform to compress images
- Python 3 (3.6 or newer)
- Python image library (Pillow)
- Install Python 3
- Install Pillow (Python image library)
- Edit main.py and specify image location and quality
- Run main.py
Type in command prompt
python -m pip install Pillow
Type in terminal
pip install Pillow
Type in bash
sudo pip3 install Pillow
- Python 3.7
- Pillow 5.4.1