Closed steven-na closed 1 year ago
All of the image stuff is PIL
https://jdhao.github.io/2020/03/17/base64_opencv_pil_image_conversion/#pil-image-to-base64 This is a very helpful article for converting images between b64, I switch out
img = Image.new("RGB", (512, 512))
data = base64.b64encode(img.tobytes())
to the article's example and it worked
I am curious about how it's recommended to send the data for the image. I've been doing it like so:
This required a change in nodes.py:
But it was the only way i could get the image info through a request because i couldnt encode the image with utf-8 Now, I have changed
to
I'm sure that this is absolutely the wrong way to do it. I am getting this error when running the new code