Skip to content

Instantly share code, notes, and snippets.

@umtkas
Last active January 19, 2021 19:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save umtkas/db5e58178a8f3b456b2035cdb52476f3 to your computer and use it in GitHub Desktop.
Save umtkas/db5e58178a8f3b456b2035cdb52476f3 to your computer and use it in GitHub Desktop.
type ImageSize struct {
WidthHeight string // 200x300
Width int // 200px
Height int // 300px
}
type Configuration struct {
LocalImageDirectory string // /tmp - aws lambda function only has write permission on /tmp directory
UploadDirectory string // s3 bucket upload directory
ImageExtension string // png/jpg
IsSaveWithAspectRatio bool
ImageSizes []ImageSize
Region string // aws region
Bucket string // s3 bucket name
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment