Skip to content

limbuster/image-resize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serverless with Go

Before running anything

Please change the serverless.yml file to reflect the correct s3 bucket.

Background

When an image is uploaded to s3://bucket/uploads/file.jpg it will be copied as original to s3://bucket/uploads/<md5_checksum>.jpg and the file will be removed from the original. It will also create a thumbnail with max dimension of 500 pixels.

This project uses resize to generate the thumbnail.

Build

make

Deploy

sls deploy

Upload to s3 bucket

aws s3 cp resources/test.jpg s3://<bucket>/uploads/

Improvements

  • Add unit tests

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published