Skip to content

An Alfred workflow used to process PNG/JPG/GIF images locally or by using online service.

Notifications You must be signed in to change notification settings

Konfido/alfred_image_utils

Repository files navigation

Alfred Workflow - Image Utils

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.

Usage

  • 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:
      1. Select the image files in Finder or Alfred
      2. Press hotkey (default ⌘⌥\) to trigger the File Action in Alfred.
      3. Select File Actions:
        • Image - Compress with TinyPNG
        • Image - Resize with TinyPNG
    • Triggered by Keyword:
      1. Select images files in Finder

      2. Launch Alfred, and use the following keywords.

        • compress with tinypng

        • resize with tinypng

  • 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

Dependencies

  • pngquant, jpegoptim, figsicle : Tools used for local image processing.
    • brew install pngquant jpegoptim gifsicle

Acknowledgement

About

An Alfred workflow used to process PNG/JPG/GIF images locally or by using online service.

Resources

Stars

Watchers

Forks

Packages

No packages published