Skip to content
Server for dynamically resizing images on the fly
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
example
test
.travis.yml
README.md
index.js
package.json

README.md

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.

build status

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

Something went wrong with that request. Please try again.