Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

img

pure go image rendering server. accepts a POST, stores the file on s3, and performs various manipulations on the images via GET string params

example upload

curl -i -F file=@photo2.jpg http://localhost:8080/upload

API

  • action: the action to perform. currently supports: crop: currently only cropping form the middle is supported
  • w: width in pixels of the cropped image
  • h: height in pixels of the cropped image

example request

http://localhost:8080/img/671e3346e405b99441bf4f0de7abc4dd?action=thumbnail&w=500&h=500

Config

Use the config.toml file to config various variables of the server.

AWS creds

The AWS package expects a credentail file located at ~/.aws/credentials of ENV variables setup. Additional details here.

About

pure GO image rendering server. accepts a POST, stores the file on s3, and performs various manipulations on the images via GET string params

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages