A little bash script, which reduce the size of all images in a folder
You need to have curl installed to be able to use this script. If you don't have it just run this command :
sudo apt-get install curl
Just add this function to your .bashrc file. You can just launch this :
cat tinypng >> ~/.bashrc
You need to replace apikey with your api key. You just have to register on tinypng.com
Go to a folder full of images and then launch the command :
tinypng
Let the script works !
Enjoy !