1.0.8 • Published 8 years ago
makestatic-optimize-webp v1.0.8
Optimize Image
Optimize image files
Optimizes image files using imagemin.
Install
yarn add makestatic-optimize-imageminAPI
OptimizeImage
Compress image files.
See Also
.sources
OptimizeImage.prototype.sources(file, context[, options])Optimize a file.
This implementation inspects the file extension and configures imagemin
with the appropriate plugin for the file being processed.
Returns a promise that resolves when the file has been optimized.
fileObject the current file.contextObject the processing context.optionsObject options forimagemin.
Options
jpgObject options forimagemin-mozjpeg.pngObject options forimagemin-pngquant.svgObject options forimagemin-svgo.gifObject options forimagemin-gifsicle.
License
MIT
Created by mkdoc on March 12, 2017