Skip to content

onestay/resize-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is just a simple server I wrote for the nfnt/resize package for Hikari.

For production

The image is on Dockerhub. It needs the following env variables to run:

  • BUCKET_NAME=The bucket where to get the files from and where to upload them
  • AWS_ACCESS_KEY_ID=Your aws access key id
  • AWS_SECRET_ACCESS_KEY=Your aws secret access key
  • AWS_REGION=the region of the bucket

After that you can hit the endpoint with a query paramter 'key' which is the picture to be resized. It will then produce a thumbnail of max 200x200 and upload it to the same bucket under a folder called /thumb.

For dev

Fill out all the env vars and docker-compose up

About

A server for nfnt/resize downloading a file from s3, resizing it and uploading it back to s3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages