https://github.com/prolificinteractive/image-server
A simple nodejs image server
https://github.com/prolificinteractive/image-server
Last synced: 8 months ago
JSON representation
A simple nodejs image server
- Host: GitHub
- URL: https://github.com/prolificinteractive/image-server
- Owner: prolificinteractive
- License: mit
- Created: 2014-01-06T19:05:51.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-01-07T16:36:28.000Z (over 12 years ago)
- Last Synced: 2025-03-14T01:46:26.130Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 119 KB
- Stars: 0
- Watchers: 7
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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* -