1from tkinter import *
2root=Tk()
3img=PhotoImage(file='sunshine.jpg')
4Label(root,image=img).pack()
5root.mainloop()
1import tkinter as tk
2from PIL import Image, ImageTk
3
4root = tk.Tk()
5img = Image.open("path\\to\\imgage.jpg")
6img = img.resize((250, 250))
7tkimage = ImageTk.PhotoImage(img)
8tk.Label(root, image=tkimage).grid()
1import tkinter
2from PIL import Image, ImageTk
3
4load= Image.open("/Users/omprakash/Desktop/Gmail-new-logo.jpg")
5render = ImageTk.PhotoImage(load)
6img = Label(root, image=render)
7img.place(x=100, y=100)
8
1import tkinter as tk
2window = tk()
3canvas = Canvas(window, width=300, height=300)
4image = PhotoImage('path')
5canvas.create_image(height=40, width=40, img=image)