summaryrefslogtreecommitdiffstats
path: root/README.md
blob: c1bf144e929ff8b4659744ddc354dbfefc7f2a95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[![Build Status](https://travis-ci.org/ameer1234567890/tinifier.svg?branch=master)](https://travis-ci.org/ameer1234567890/tinifier)

#### 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`.