Optional but recommended > Create a new Python virtual environement then activate it
From the root of the project directory run: pip install -r requirements.txt
Python 3.8+
From the root of the project directory run: pip install -r requirements.txt
Add your tinypng api key to your environment variables under the key TINYPNG_API_KEY
example: export TINYPNG_API_KEY=""
Put all the files your want copied to .jpg in the /input directory
Put all the files your want copied to thumbnails in the /input_thumbs directory
Run from the src
directory:
python3 tpu_main.py
When the script is done the new files will be located in the output directory
Please do!
Kevin Fink
MIT
TinyPNG for their generosity in allowing some free access to their API.