alfred-imagemin

1.4.0 • Public • Published

alfred-imagemin

Minify images with Imagemin. 3 file formats supported. PNG, JPEG, GIF

minify-demo

Install

Requires the Alfred 3 or 4 Powerpack, Node.js 8+.

With NPM

Install with npm

$ npm install --global alfred-imagemin

Manually

download the workflow directly.

Usage

  1. Select images on finder.
  2. Open alfred and type imagemin and press the Enter key.
  3. Output minify images in optimized_images folder.

Configuration

You can set the compression rate and output dir with an environment variable.

name default value
JPEG_QUALITY 70 Option to imagemin-mozjpeg. Compression quality, in range 0 (worst) to 100 (perfect)
PNG_MAX_QUALITY 0.6 Option to imagemin-pngquant. Compression max quality, in range 0 to 1
PNG_MIN_QUALITY 0.5 Option to imagemin-pngquant. Compression min quality, in range 0 to 1
GIF_OPTIMIZATION_LEVEL 3 Option to imagemin-gifsicle. Select an optimization level between 1 and 3.
OUTPUT_DIR optimized_images Optimized image output directory name

Related

License

MIT ©

Dependencies (8)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i alfred-imagemin

    Weekly Downloads

    2

    Version

    1.4.0

    License

    MIT

    Unpacked Size

    115 kB

    Total Files

    17

    Last publish

    Collaborators

    • ryokawamata