thumb-express

Express/Connect middleware for creation of image thumbnails

npm install thumb-express
1 downloads in the last day
6 downloads in the last week
14 downloads in the last month

Use Case

<a href="img/myimage.jpg"><img src="img/myimage.jpg?tn=150"></a>

Installation

$ npm install thumb-express

Examples

var rt = require("thumb-express");
...
app.use(rt.init(path.join(__dirname, 'public')));
app.use(express.static(path.join(__dirname, 'public')));


http://mydomain.com/myimage.jpg // full image
http://mydomain.com/myimage.jpg?tn=250 // 250px wide resized image

Dependencies

Depends on imagemagick

Credits

This a chopped verison of quickthumb with elements from from node-gallery (or vice versa)

npm loves you