Answers for "tkinter.tclerror: couldn't recognize data in image file "image/download.jpg""

0

couldn't recognize data in image file

# PIL solution
from tkinter import *
from PIL import ImageTk, Image

tkFenster = Tk()

canv = Canvas(master=tkFenster)
canv.place(x=0, y=0, width=750, height=531)

img = ImageTk.PhotoImage(Image.open("mond.gif"))  # <-- PIL
canv.create_image(0, 0, image=img, anchor='nw')

mainloop()
Posted by: Guest on November-09-2020

Code answers related to "tkinter.tclerror: couldn't recognize data in image file "image/download.jpg""

Python Answers by Framework

Browse Popular Code Answers by Language