Compress images using tinify.com API
Switch branches/tags
Nothing to show
Clone or download
Latest commit 962e922 Oct 18, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Fix API Limit bug Jul 24, 2017
.travis.yml shfmt Oct 13, 2018
README.md Add travis badge Aug 22, 2018
TODO.md Fix to retry on empty responses Aug 24, 2018
tinifier.sh Add closing pause Oct 18, 2018

README.md

Build Status

Works with

  • Almost any linux based shell.
  • Cygwin shell on Windows.
  • Git Bash on Windows.

Requirements

  • cURL
  • Some patience.

Setup Instructions

  • Create a file named .tinify_api_key one level above the tinifier.sh file. This file should contain the tinify.com API key without a leading CR and/or LF.
  • Create two folders named files and compressed in the same folder as tinifier.sh.
  • Place all pictures which needs to be compressed, inside the files folder.
  • If you are on linux, ensure that tinifier.sh is chmodded to 755.
  • Run ./tinifier.sh.