/fly-imagemin

Minify PNG, JPEG, GIF and SVG images with fly

Primary LanguageJavaScriptOtherNOASSERTION

imagemin plugin for Fly.

Install

npm install -D fly-imagemin

Usage

export default function* () {
  yield this
    .source("image.jpg")
    .imagemin({
      progressive: true
    })
    .target("result")
}

options

optimizationLevel (png)
  • Type: number
  • Default: 3
progressive (jpg)
  • Type: boolean
  • Default: false
interlaced (gif)
  • Type: boolean
  • Default: false
multipass (svg)
  • Type: boolean
  • Default: false
svgoPlugins (svg)
  • Type: array
  • Default: []
use
  • Type: array
  • Default: null

Additional plugins to use with imagemin.

License

MIT © Juanfran et al