Skip to content
Connect middleware that resizes images on the fly and caches them
CoffeeScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
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
)
Something went wrong with that request. Please try again.