Skip to content

Commit

Permalink
0.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vladikoff committed Oct 22, 2014
1 parent d11741d commit 55e296a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v0.9.0:
date: 2014-10-22
changes:
- Update to imagemin 2.0.
v0.8.1:
date: 2014-08-27
changes:
Expand Down
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# grunt-contrib-imagemin v0.8.1 [![Build Status: Linux](https://travis-ci.org/gruntjs/grunt-contrib-imagemin.png?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-imagemin) <a href="https://ci.appveyor.com/project/gruntjs/grunt-contrib-imagemin"><img src="https://ci.appveyor.com/api/projects/status/s1cpt9m3e5ihuoqj/branch/master" alt="Build Status: Windows" height="18" /></a>
# grunt-contrib-imagemin v0.9.0 [![Build Status: Linux](https://travis-ci.org/gruntjs/grunt-contrib-imagemin.png?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-imagemin) <a href="https://ci.appveyor.com/project/gruntjs/grunt-contrib-imagemin"><img src="https://ci.appveyor.com/api/projects/status/s1cpt9m3e5ihuoqj/branch/master" alt="Build Status: Windows" height="18" /></a>

> Minify images
Expand Down Expand Up @@ -32,6 +32,7 @@ Comes bundled with the following optimizers:
- [gifsicle](https://github.com/kevva/imagemin-gifsicle)*Compress GIF images*
- [jpegtran](https://github.com/kevva/imagemin-jpegtran)*Compress JPEG images*
- [optipng](https://github.com/kevva/imagemin-optipng)*Compress PNG images*
- [pngquant](https://github.com/kevva/imagemin-pngquant)*Compress PNG images*
- [svgo](https://github.com/kevva/imagemin-svgo)*Compress SVG images*

We recommend using [grunt-newer](https://github.com/tschaub/grunt-newer) to only process changed files as minifying images can be quite slow.
Expand Down Expand Up @@ -77,6 +78,14 @@ Default: `true`
Interlace gif for progressive rendering.


####### svgoPlugins *(svg)*

Type: `array`
Default: `[]`

Customize which SVGO plugins to use. [More here](https://github.com/sindresorhus/grunt-svgmin#available-optionsplugins).


#### use

Type: `Array`
Expand All @@ -89,13 +98,14 @@ Additional [plugins](https://npmjs.org/keyword/imageminplugin) to use with image
You can either map your files statically or [dynamically](http://gruntjs.com/configuring-tasks#building-the-files-object-dynamically).

```js
var mozjpeg = require('imagemin-mozjpeg');
var mozjpeg = require('imagemin-mozjpeg').ctor;

grunt.initConfig({
imagemin: { // Task
static: { // Target
options: { // Target options
optimizationLevel: 3,
svgoPlugins: [{ removeViewBox: false }],
use: [mozjpeg()]
},
files: { // Dictionary of files
Expand All @@ -122,6 +132,7 @@ grunt.registerTask('default', ['imagemin']);

## Release History

* 2014-10-22   v0.9.0   Update to imagemin 2.0.
* 2014-08-27   v0.8.1   Bump dependencies.
* 2014-08-11   v0.8.0   Better output. Chalk 0.5.0 update. Fixes imagemin options.
* 2014-08-11   v0.7.2   Fix npm EPEERINVALID
Expand All @@ -146,4 +157,4 @@ grunt.registerTask('default', ['imagemin']);

Task submitted by [Sindre Sorhus](http://github.com/sindresorhus)

*This file was generated on Wed Aug 27 2014 14:44:52.*
*This file was generated on Wed Oct 22 2014 14:25:49.*
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "grunt-contrib-imagemin",
"description": "Minify images",
"version": "0.8.1",
"version": "0.9.0",
"author": {
"name": "Grunt Team",
"url": "http://gruntjs.com/"
Expand Down

0 comments on commit 55e296a

Please sign in to comment.