Optimize PNG and JPG images with optipng & jpegtran on --optimize
CoffeeScript JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src Slight copy tweaks. Nov 17, 2013
test inii Nov 11, 2012
.gitignore inii Nov 11, 2012
CHANGELOG.md inii Nov 11, 2012
README.md bumped version Nov 18, 2013
package.json 0.0.6 Apr 7, 2015
setup.js inii Nov 11, 2012

README.md

imageoptimizer-brunch

Optimize PNG and JPG images on --optimize with brunch. It either uses jpegtran and optipng or node-smushit to get the best out of your images in your /public folder.

Installation

You can install jpegtran and optipng with homebrew

brew install optipng jpeg

Config

  imageoptimizer:
    smushit: false # if false it use jpegtran and optipng, if set to true it will use smushit
    path: 'images' # your image path within your public folder

Usage

Add "imageoptmizer-brunch": "0.0.4" to package.json of your brunch app.

Pick a plugin version that corresponds to your minor (y) brunch version.

If you want to use git version of plugin, add "imageoptmizer-brunch": "git+ssh://git@github.com:steffenmllr/imageoptmizer-brunch.git"