gifsicle imagemin plugin
$ npm install --save imagemin-gifsicle
const imagemin = ;const imageminGifsicle = ;;
Returns a promise for a buffer.
Interlace gif for progressive rendering.
Select an optimization level between
The optimization level determines how much optimization is done; higher levels take longer, but may have better results.
- Stores only the changed portion of each image.
- Also uses transparency to shrink the file further.
- Try several optimization methods (usually slower, sometimes better results)
Reduce the number of distinct colors in each output GIF to num or less. Num must be between 2 and 256.
Buffer to optimize.
MIT © imagemin