I need the background of the photo to be transparent; below is my code:
from tkinter import *
from PIL import ImageTk,Image
root=Tk()
root.geometry("300x300")
root.configure(bg="yellow")
image=Image.open("zombie.png")
image=image.resize((50,50))
img=ImageTk.PhotoImage(image)
canvas=Canvas(width=150, height=100,borderwidth=3,bd=0)
canvas.create_image(50,50,image=img)
canvas.pack()
root.mainloop()