Skip to content
/ croche Public

Very simple remote thumbnail generator with a very simple cache system

Notifications You must be signed in to change notification settings

vinch/croche

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 [email protected]: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

About

Very simple remote thumbnail generator with a very simple cache system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published