I'm using PIL to load a jpg file and display it in a label widget. At first, I got "decoding error" from python and found this post on stack overflow - How can I install PIL on mac os x 10.7.2 Lion - and it's resolved the decoding error. However, the label doesn't display any image, just a white area. This is the code for loading image -
script, file = argv
self.orgimg = Image.open(file)
#Original Image
img = ImageTk.PhotoImage(self.orgimg)
Label(self.root, image=img).grid(row=0,column=0,padx=5,pady=5)