Skip to content

This code builds a microservice that can receive an image upload, resize it to standard and thumbnail ready dimensions, and store it on Amazon's Simple Storage Service

nessvm/image-resizing-microservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image resizing microservice

Invoking

To create a new image/thumbnail entry in the database, make a POST request to /documents/ with a multipart Content-Type in the request header. The service takes a single argument that should be called 'image' in case the request is form encoded.

To retrieve an image package object given its id make a GET request to /documents/<id>/.

Response

A successful POST request will yield an HTTP response with status code 201 and the Location link in the response header.

A successful GET request will result in an HTTP response with status code 200 and the image-package representation in the body.

Decoder Support

Decoder support relies entirely on the packages available in the host machine, the image processing libraries used in the service uses Python's Pillow module.

About

This code builds a microservice that can receive an image upload, resize it to standard and thumbnail ready dimensions, and store it on Amazon's Simple Storage Service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages