Answers for "make image to string to use in tkinter"

0

make image to string to use in tkinter

import base64

with open("path/to/image.png", "rb") as image_file:
    image_data_base64_encoded_string = base64.b64encode(image_file.read())
Posted by: Guest on August-25-2020

Code answers related to "make image to string to use in tkinter"

Python Answers by Framework

Browse Popular Code Answers by Language