Ich möchte Png-Bild zu GIF-Bild mit Python3.6 ändern, wie kann ich das tun? Ich mache ein GUI-Programm mit tkinter und i haver png zu GIF-Bild zu ändern, damit ich auf meinem Programm anzeigen kann bittewie kann ich png bild zu gif bild machen?
tk = Tk()
tk.configure(bg = 'white')
tk.title("SearchKeyWord V2.0")
canvas = Canvas(tk,width = 880, height = 550,bd = 0,highlightthickness = 0)
canvas.pack()
txt = Entry(tk)
txt.place(relx = .9,rely = .3,anchor = "c")
LOGO = PhotoImage(file = 'SKW-LOGO.gif')
button_1 = PhotoImage(file = 'button.gif')
button_2 = PhotoImage(file = 'button_news_1d.gif')
button_3 = PhotoImage(file = 'button_news_1w.gif')
button = tkinter.Button(tk,image = button_1,command = search)
button_news_1d = tkinter.Button(tk,image = button_2)
button_news_1w = tkinter.Button(tk,image = button_3)
canvas.create_image(0,0,anchor = NW, image = LOGO)
button.place(relx=.8, rely=.5, anchor="c")
button_news_1d.place(relx =.8,rely = .7, anchor = "c")
button_news_1w.place(relx =.8,rely = .9, anchor = "c")
tk.update()
tk.mainloop()
Try PIL oder Kissen https://python-pillow.org – jtlz2