Augusto
-
Posts
4 -
Joined
-
Last visited
-
Days Won
1
Reputation Activity
-
Augusto got a reaction from JuggoPop in TinyPNG - shrink your PNG files
As some users already know, the new tinypng api requires an API key.
Until the next Benzi's update comes, you can do the following steps:
- get your unique API key here (the free one allows you to convert up to 500 png files per month): https://tinypng.com/developers
- edit the great Benzi's workflow, and in the bin/bash script element, find that line:
download=$(curl -s --data-binary "@$input" http://tinypng.org/api/shrink | grep -o "http[^\"]*") .. and replace for that:
download=$(curl -s --user api:YOUR_UNIQUE_API_KEY_HERE --data-binary "@$input" https://api.tinypng.com/shrink | grep -o "http[^\"]*") just save and use!
-
Augusto got a reaction from JuggoPop in TinyPNG - shrink your PNG files
juggopop, try this:
- find that lines in the bin/bash script element:
base=$(basename "$input") new=$(echo -n $base) - replace with that:
base=$(basename "$input") currentdate=$(date +"%Y%m%d") name=$(basename "$base" .png) new=$(echo -n $name.$currentdate.bak.png) -
Augusto reacted to Benzi in TinyPNG - shrink your PNG files
This is a little utility workflow that allows you to shrink your PNG files. The workflow uses the service provided by http://tinypng.org, which also explains what exactly happens when PNG files are shrunk. You need an active internet connection for this to work.
Included in this workflow are File Actions (action: Shrink with TinyPNG), File Filters (keyword: tinypng) and a configurable Shortcut. Once you select a PNG file / or files and invoke the workflow, it will create a backup of your original file with the prefix "original_" and then compress your file using the web service.
To get an idea of the savings, the image above was shrunk using the workflow to get a savings of 72%.
Download.
All images in this post were shrunk using the TinyPNG workflow.
EDIT: If you are looking for an alternate similar workflow, try this one by @CarlosNZ