def image_jpg(): myCamera.getImage().save('/home/pi/boot/image.jpg') return send_file('/home/pi/boot/image.jpg', attachment_filename='image.jpg')