This script allows you to convert a folder of images through TinyPNG super quickly.
Usage:
- Download this script
- Run
bundlefrom within the directory that you just downloaded this to to install Tinify - Put all images you want to run through TinyPNG into the source directory.
- Run the following command:
TINYPNG_KEY="YOUR_ACTUAL_KEY" ruby compress_images.rb
This will convert each image in the source folder and output the converted image into the build folder with an identical name.