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

README.md

tinypng

Python3 commandline client for tinypng.com

Installation

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

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

License

See the LICENSE file for license rights and limitations (MIT).