The prerequisite to fix the error is my suggestion, pillow :
Windows:
pip install pillow
MacOS And Linux:
pip3 install pillow
You can clone using the following method :
git clone https://github.com/mahdianimator/image_compressor
cd image_compressor
You can run the software from the following command :
python img_compressor.py