When uploading an image to a label in Tkinter, it appears black. Not white or blank like some other questions, I did check them, and although I may have missed something, none of the answers there worked for me. Essentially, I upload an image. It appears, however, it displays only a black image, instead of the image I was using. Here is my code:
#Imports are here
import tkinter as tk
from tkinter import *
from tkinter.ttk import *
from PIL import Image, ImageTk
#Retrieving and opening image
img = ImageTk.PhotoImage(Image.open("AFile.ppm"))
label = Label(frametwo, image=img)
label.photo = img
label.grid(column=2,row=2)
This does not display an errors, the image just shows up weird. I have no clue as to why. Thanks in advance.