Skip to content

Image thumbnail generation system that is built on Clojure and Compojure.

License

Notifications You must be signed in to change notification settings

niktheblak/imagestash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

imagestash

An image thumbnail generation system that is built on Clojure and Compojure.

  • Provides an image broker actor that fetches the requested image, resizes it, caches it to a Facebook Haystack-style cache and returns the cached version on subsequent requests
  • Scalable
  • Capable of handling large amounts of image traffic

Installation

Clone the repository

$ git clone https://github.com/niktheblak/imagestash.git

Usage

Start the service with Leiningen:

$ lein ring server-headless

After this the service exposes a web API at http://localhost:8080/resize. The API takes the following parameters:

Name Type Required Description
source String x URL of the source image
size Integer x Desired size of the image
format String Desired image format (jpeg, png or gif)

For example:

http://localhost:8080/resize?source=https://channelcloud-a.akamaihd.net/mobilevideopanel_2c9314d9aa5f4c4a_364x618_29ada748cb59b5dd.JPEG&size=800

About

Image thumbnail generation system that is built on Clojure and Compojure.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published