1.0.8 • Published 6 years ago

makestatic-optimize-webp v1.0.8

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Optimize Image

Optimize image files

Optimizes image files using imagemin.



Install

yarn add makestatic-optimize-imagemin

API

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.

  • file Object the current file.
  • context Object the processing context.
  • options Object options for imagemin.
Options
  • jpg Object options for imagemin-mozjpeg.
  • png Object options for imagemin-pngquant.
  • svg Object options for imagemin-svgo.
  • gif Object options for imagemin-gifsicle.

License

MIT


Created by mkdoc on March 12, 2017

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago