Python3 commandline client for
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Python3 commandline client for


You need to install python3 and requests first.

Then clone this repository or download just the tinypng file.

Get an API Key from and put it in .tinypng_api_key in your home directory:


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).