Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 7d0779ab19

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src
README.markdown

README.markdown

About

For GET requests, dynamically resizes image using ImageMagick and serves the resized image.

For example,

GET /some/image.c.10x20.jpg

will execute

convert srcDir/some/image.jpg -resize 10x20 destDir/some/image.c.10x20.jpg

and serves

destDir/some/image.c.10x20.jpg

convert command, srcDir, and destDir are configurable.

Getting started

Download and install Node.js:

cd node-v0.2.5
./configure --prefix=$HOME/opt/nodejs --without-ssl
make
make install
#add nodejs/bin to PATH

Run

node src/main.js localhost:8888

Configure

vim src/settings.js
Something went wrong with that request. Please try again.