Python3 commandline client for tinypng.com
You need to install python3 and requests first.
Then clone this repository or download just the tinypng file.
Get an API Key from tinypng.com and put it in .tinypng_api_key in your home directory:
/home/$USER/.tinypng_api_key
Add the file to your PATH environment variable and use it!
usage: tinypng [-h] [-o OUTPUT] inputfile
positional arguments:
inputfile The file to be tinified. May be JPG or PNG
optional arguments:
-h, --help show this help message and exit
-o OUTPUT, --output OUTPUT
Filename where the tinified output should be stored.
Defaults to inputfile with ".tiny" inserted before the
file type extension
See the LICENSE file for license rights and limitations (MIT).