Very simple remote thumbnail generator with a very simple cache system
Switch branches/tags
Nothing to show
Clone or download
Latest commit a1a424a Aug 15, 2013
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cache First commit Mar 3, 2012
.buildpacks Added IM buildpack Aug 15, 2013
.gitignore Added .gitignore Mar 20, 2012
Procfile Added Procfile Aug 15, 2013
README.md Changed path in README Aug 15, 2013
croche.png Removed duplicate code + updated readme Aug 2, 2012
index.js Env port Aug 15, 2013
package.json First commit Mar 3, 2012

README.md

croche

croche is a very simple remote thumbnail generator with a very simple cache system.

Prerequisites

We assume you have the following tools already installed:

Installation

First of all, you need to install imagemagick on your server:

brew install imagemagick

After, that, just clone the project wherever you want:

git clone git@github.com:vinch/croche.git

Go to the newly created folder and download all the dependencies:

npm install

After that, you're ready to go! Just start the server:

node .

Usage

Go to that URL: http://localhost:3333/

It accepts the following parameters:

  • url: URL of the image (URL-encoded)
  • width: desired width of the result (optional, default 320)
  • height: desired height of the result (optional, default 240)

Example: http://localhost:3333/resize?url=http%3A%2F%2Fwww.vinch.be%2Fattic%2Fme.jpg&width=120&height=95