alfred-imagemin
Minify images seamlessly with imagemin.
Install
Ensure you have Node.js version 10 or higher installed. Then run the following:
$ npm install --global alfred-imagemin
Usage
Selected image files on finder, type imagemin
and enter
in Alfred.
Configuration
Alfred environment variables.
name | default | value |
---|---|---|
JPEG_QUALITY | 80 | Option to imagemin-mozjpeg. Compression quality, in range 0 (worst) to 100 (perfect). |
PNG_MIN_QUALITY | 0.8 | Option to imagemin-pngquant. Compression max quality, in range 0 to 1 |
PNG_MAX_QUALITY | 0.65 | 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. |