Is it possible to, in Python3, convert a PIL/Pillow Image object into a data:image/png URL such that, when pasted into a browser address bar, the image appears?
My attempts so far have failed:
"data:image/png,{}".format(image_obj.tobytes())
Alternatively, is there any other good way to send images to a remote user from a Python script? Image hosting sites would be good but often are expensive / have no Python API / require signing up and logging in. At the moment I intend to use a service like Pastebin to store the image in its text form and simply send the URL to the user.