Jump to content

JuggoPop

Member
  • Posts

    2
  • Joined

  • Last visited

Reputation Activity

  1. Like
    JuggoPop reacted to Augusto 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!
  2. Like
    JuggoPop reacted to Augusto 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)
×
×
  • Create New...