imagemin/imagemin
imagemin rewrites images in place or into a destination folder by passing each file through a list of optimizer plugins, so JPEG, PNG, GIF and SVG are compressed by the tools chosen for them. The API accepts file paths or glob patterns and returns the optimised buffers together with their source and destination paths; a buffer variant handles in-memory data. Plugins such as imagemin-jpegtran and imagemin-pngquant are published separately.
Maintenance activity