brodigan-e / capstone-POV

NEU Capstone Project
MIT License
2 stars 1 forks source link

Process all images uploaded to the web server by default #26

Closed jbewing closed 3 years ago

jbewing commented 3 years ago

This PR updates the REST API to automatically process and save all images in our "optimized for the MCU" format. I was doing some slides and I really wanted to write that the REST API had the functionality of processing these images, so I just added it (to not make any misleading statements of course 😉 ).

Details

Testing

I ran the following commands

$ poetry run task apply-migrations
$ poetry run task run &
$ curl -F "file=@/Users/jbewing/Desktop/a_golden_retriever.jpeg" 127.0.0.1:5000/api/images
...
$ kill %1

and verified that the text file was indeed created on my local filesystem.

cc @DarkAce65 Closes: https://github.com/brodigan-e/capstone-POV/issues/9