Compress JPG or PNG file in command line.
$ npm install -g tinypic
Get an API Key first: https://tinypng.com/developers
# Set API Key before use
$ tinypic use $API_KEY
# Compress an image
$ tinypic example.jpg
# it writes to example.min.jpg
# Custom destination
$ tinypic example.jpg ../output.foo.jpg
MIT ยฉ EGOIST