Skip to content

prolificinteractive/image-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image-server

Configuring

Copy config.default.json to config.json and set up a password

Starting/Stopping

make start
make stop

It will start an http server running on port 80 and pulling images from /opt/images. You can also run it using forever:

sudo node_modules/.bin/forever start index.js -p 80 -i /opt/images

##Endpoints

GET /images/{width}x{height}/{source}?skip={milliseconds}

  • source - The URL of the image to be resized
  • width - The target width
  • height - The target height
  • skip (optional) - Artificial latency for testing purposes, in milliseconds

PUT /post/images/{source}

  • source -

About

A simple nodejs image server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published