fix old doc + add local file curl documentation

This commit is contained in:
jqueguiner
2021-01-13 13:48:44 +01:00
parent 79e28ef1c9
commit 54bc046071
+1 -1
View File
@@ -364,7 +364,7 @@ Calling the API for image processing for a remote image
curl -X POST "http://MY_SUPER_API_IP:5000/process" -H "accept: image/png" -H "Content-Type: application/json" -d "{\"url\":\"http://www.afrikanheritage.com/wp-content/uploads/2015/08/slave-family-P.jpeg\", \"render_factor\":35}" --output colorized_image.png
```
Calling the API for image processing for a binary image
Calling the API for image processing for a local image
```console
curl -X POST "http://MY_SUPER_API_IP:5000/process" -H "accept: image/png" -H "Content-Type: image/jpeg" -F "file=@slave-family-P.jpeg" -F "render_factor=35" --output colorized_image.png
```