Connect middleware that resizes images on the fly and caches them
CoffeeScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
Readme.md
index.coffee
package.json

Readme.md

Shrink

Connect middleware that resizes images on the fly.

It supports cropping & scaling, and caches the resulting images.

Usage

app.use require("node-shrink")(
  cachePath: __dirname + "/.." + config.paths.resizedCacheDir
  tmpPath: __dirname + "/.." + config.paths.tmpDir
  secret: config.general.imageSecret
)