Using local CLIs or the TinyPNG service to process images (PNG/JPG/gif).
Notes:
- The free TinyPNG API has a monthly limit of 500 file processes per month.
- Please make sure you have made all dependencies installed.
-
Online processing
Your images will be uploaded to TinyPNG, and the processed files and a report will be downloaded to a TinyPNG folder on your Desktop. Available services include compressing and resize (scale, fit cover, thumb). Please check out tinypny api for further info.
- Triggered by File Action:
- Select the image files in Finder or Alfred
- Press hotkey (default
⌘⌥\
) to trigger the File Action in Alfred. - Select File Actions:
Image - Compress with TinyPNG
Image - Resize with TinyPNG
- Triggered by Keyword:
-
Select images files in Finder
-
Launch Alfred, and use the following keywords.
-
compress with tinypng
-
resize with tinypng
-
-
- Triggered by File Action:
-
Local processing
- Triggered by File Action
Image - Rename (locally)
: change images' name to the format of '%Y%m%d%H%M%S%f'Image - Compress locally
Image - Resize
Image - Round Corner
Image - Concact Horizontally
- Triggered by File Action
pngquant
,jpegoptim
,figsicle
: Tools used for local image processing.brew install pngquant jpegoptim gifsicle
-
The original version of this workflow is integrated and refactored from TinyPNG and Alfred Gallery.
-
The workflow's icon is made by Freepik from www.flaticon.com.