crops
v2.0.0
Published
Server for dynamically resizing images on the fly
Downloads
9
Readme
crops
Server for dynamically resizing images on the fly
Point at any valid file server and crops will stream the response through Graphicsmagick to the client. Crops sits well between an image file server and a CDN.
install
With npm do:
npm install crops
Crops requires graphicsmagick so make sure that is installed
example
var crops = require('crops')
crops('https://npm-crops.s3.amazonaws.com/').listen(3000)
$ curl http://localhost:3000/image.jpg
$ curl http://localhost:3000/160x90/image.jpg
$ curl http://localhost:3000/400x220/image.jpg
license
MIT