mirror of
https://github.com/ivanch/tcc.git
synced 2025-08-25 15:21:49 +00:00
melhorando testes e adicionando actix
This commit is contained in:
@@ -11,10 +11,10 @@ def blur_image():
|
||||
image = request.get_data()
|
||||
|
||||
if radius and image:
|
||||
return send_file(image_service.box_blur_image(image, radius),
|
||||
mimetype='image/jpeg',
|
||||
return send_file(io.BytesIO(image_service.box_blur_image(image, radius)),
|
||||
mimetype='image/png',
|
||||
as_attachment=True,
|
||||
download_name='blurred_image.jpeg')
|
||||
download_name='blurred_image.png')
|
||||
|
||||
return "Bad request", 400
|
||||
|
||||
|
Reference in New Issue
Block a user