I am inserting GIF image onto my GUI using Tkinter. However I do not know how to auto-scale the size of the image to best fit any resolution. Below are my coding:
from tkinter import *
import base64
import urllib.request
URL ="file:///C:/Users/Student/Desktop/ezgif.com-resize.gif"
link = urllib.request.urlopen(URL)
raw_data = link.read()
link.close()
next = base64.encodestring(raw_data)
image = PhotoImage(data=next)
label = Label(image = image)
label.place(x=0,y=0)
Can anyone help me?