Jump to content

nik

Member
  • Posts

    2
  • Joined

  • Last visited

Reputation Activity

  1. Like
    nik reacted to CarlosNZ in Tiny PNG workflow [Updated to v1.2]   
    Hi Nik,
     
    you need to launch Alfred with the "File Selection" hotkey, which you'll find at the bottom of this preference page:

    (I can't remember what the default hotkey is, since I've changed mine).
     
    A lot of new users don't seem to aware of the "File Selection" hotkey, I've found, so hopefully that will sort you out.
     
    I might add an option in a subsequent update to act on the current Finder selection when launched from Alfred's main window, like I've done with my DeskDrawer workflow.
  2. Like
    nik reacted to CarlosNZ in Tiny PNG workflow [Updated to v1.2]   
    This workflow will take a set of PNG or JPG files and compress them using the online TinyPNG service.

    For more info on what it does to the image, see http://tinypng.com/

    Usage:

    This workflow works as either a File Action or a regular keyword process.

    Either:
    1) Select the PNG or JPG files you want processed (in Finder or Alfred), then select the "Compress with TinyPNG" File Action in Alfred.
    2) Select the PNG or JPG files you want processed in Finder, launch Alfred, then use the “tinypng" keyword.

    The processed files will be downloaded to a TinyPNG folder on your Desktop, along with a Report showing the success/failure of each file, and how much it has been compressed by.

    The process may take some time, especially if you have selected several large image files, but you will notified on completion. However, if you have Growl/growlnotify installed, you will get a per-file notification as it progresses.
     
    A Note on Heavy Usage:
     
    The TinyPNG API has a limit of 500 files per month. As you can imagine, once a few people are using the workflow substantially, this doesn't take long to reach. I have provided a default API key built-in so you can use the workflow immediately. However, if you intend to continue using it in any substantial capacity I strongly suggest you visit https://tinypng.com/developers and register for your own API key. You can jump there with the keyword “tinypng_getkey” in Alfred. Once you’ve got your key, save it into the workflow configuration with the keyword  “tinypng_config”
     
    Download v1.3
     
    Cheers,
    Carl
     
    ----
     
    28 November 2013 - updated to v1.1
    Updated to use the new TinyPNG.com API Now works as a regular Alfred keyword (with Finder selection) as well as File Action  
    19 March 2014 - updated to v1.2
    Now gives better error reporting on failures. (You’ll be able to tell if the monthly limit has been exceeded.) Consolidated processing to a single bash script. The Finder Selection script now just parses the input and sends it to the main script. (Irrelevant to user experience.) User can enter their own API key to prevent reaching the Free account limit when using a shared key. Updated icons (from TinyPNG.com)  
    6 October 2015 - updated to v1.3
        Now supports JPG files as well.  
×
×
  • Create New...