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.

imageoptim-alfred-workflow's People

Contributors

alexanderwillner avatar vitorgalvao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

jadegeek

imageoptim-alfred-workflow's Issues

multi file select

amazing! i just googled for alfred imageoptim and found this. i found a bunch of others and curious why'd you build this over the others that already exist?

anyway... is it possible to process a number of images at once? with alfred i can select a few images via file buffer (https://www.alfredapp.com/help/features/file-search/#file-buffer) but would be great to then shrink them as well.

ty!

Optimize image in clipboard

I have a feature request that I believe would be a great improvement.

Another command that takes the image in the clipboard, optimizes it and puts it back to the clipboard.

Use case:

  1. I take screenshot to clipboard using standard macOS shortcut or any other tool allowing to copy an image to the clipboard
  2. I'd like to run optimization through alfred that puts back the result in the clipboard
  3. I could then paste the optimized image using CMD+V (and result accessible to the clipboard history)

Ability to set compression level

I have been testing out the workflow, and I greatly appreciate something that takes a menial task that I regularly perform and streamlines it.

I must have something different setup than default in the app, as my optimizations via the ImageOptim app versus the workflow are a lot more compressed.

I'm curious if an option could be added to adjust the level of optimization that is done.

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.