Git Product home page Git Product logo

imageoptim-alfred-workflow's Introduction

Alfred ImageOptim Workflow

download

ImageOptim removes bloated metadata. Saves disk space & bandwidth by compressing images without losing quality.

Usage

To activate this workflow on one or multiple folders or files (JPG, PNG, GIF, or SVG) you've a number of possibilities. After a few seconds the image(s) should be compressed.

  1. In Finder select your files/folders, invoke your hotkey for Universal Actions, then select Optimize Images. Invoke
  2. Or use a File Buffer by invoking your Alfred Hotkey, typing the keyword imageoptim, typing the name of a file/folder, select multiple files using โŒฅ + Arrow up, and finally pressing enter. File Buffer

Caveats

Please note that ImageOptim or related tools should be installed (e.g. via brew). Binaries that will be used (if installed):

  • JPEG: jpegtran, jpegoptim
  • GIF: gifsicle
  • SVG: svgcleaner
  • PNG: pngcrush, advpng, oxipng, pngquant, zopflipng, pngout

Installing the Workflow

  1. Simply download the last release
  2. Unzip the file on your computer
  3. Install imageoptim.alfredworkflow by double-clicking the workflow file and clicking on "Import".

You'll now see the workflow listed in the left sidebar of your Workflows preferences pane.

Command Line

$ ./bin/imageoptim workflow/icon.png
Starting...
Optimizing workflow/icon.png with pngcrush...
Optimizing workflow/icon.png with advpng...
Optimizing workflow/icon.png with oxipng...
File already optimized
Optimizing workflow/icon.png with pngquant...
Optimizing workflow/icon.png with zopflipng...
Optimizing workflow/icon.png
Input size: 20875 (20K)
Result size: 20266 (19K). Percentage of original: 97.083%
Result is smaller

Optimizing workflow/icon.png with pngout...
Done.

Details

To create a modified version of the workflow, edit the files and run make workflow to create an updated workflow.

Disclaimer

This package has been inspired by ramiroaraujo's Image Optim Alfred Workflow.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.