Releases: fhemberger/imagemin-gm
Releases · fhemberger/imagemin-gm
v2.0.3
v2.0.0: Pass path to GraphicsMagick binaries
- use 'standard' style
- update dependencies
- BREAKING CHANGE:
imagemin-gm
needs now to be instantiated, to optionally pass gm binary path as Constructor option:
const imagemin = require('imagemin')
const ImageminGm = require('imagemin-gm')
const imageminGm = new ImageminGm()
const plugins = [
imageminGm.resize({ width: 250, height: 250, gravity: 'Center' }),
imageminGm.convert('jpg')
]
imagemin(['images/*.gif'], 'output', { use: plugins })
.then(() => console.log('Images converted'))
.catch(err => console.error(err))