Closed CriztianiX closed 3 years ago
You can convert the image to a string blob using get_blob
, then just write it as the output. You'll also want to set the correct content type.
Keep in mind, if the image is static file, I recommend just serving it from disk using try_files
, I don't think it's wroth dynamically creating the image in memory.
Using lapis framework i need to send an image created on-the-fly