Skip to content

mazhar266/image-resize

 
 

Repository files navigation

Image Resize

Flask async REST service using for image resizing

Usage: docker-compose up

Further information can be found in the documentation on Docker and Docker Compose

API Reference:

Create resize task:

POST /operation/resize HTTP/1.1

Content-Type: multipart/form-data

Accepts a file in mulipart/form-data format and json with height and width parameters Returns a json with created task id, or error

Get task state

GET /status/<uuid:task_id> HTTP/1.1

Accepts a task id in UUID format as a GET parameter, and returns state of that task, or returns 404 if there is not task with given id

Get task result

GET /operation/result/<uuid:task_id> HTTP/1.1

Accepts a task id in UUID format as a GET parameter, and returns result of that task, or returns 404 if there is not task with given id or it's not completed yet

About

Flask async REST service for image resizing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.6%
  • Dockerfile 2.4%