Relative Content

Tag Archive for pythontkinterpython-imaging-library

TKinter places a strange white box on a displayed image

I am developing a GUI using TKinter that allows users to interactively set parameters that are used for processing some images. The GUI displays the image that is being analyzed so that users can see how changing the parameters changes the result of the image processing. After realizing that the method I am using to process images does not perform well, I decided to create another GUI that I can use to debug the method. This debugging GUI will display two images – the original one being processed, and a binary mask that will be used to isolate features on the original. After developing this GUI, I noticed that when displaying the images, there is now a strange white box in the center of the image that was not there on the original one.

My Photo is not appearing on Canvas after filedialog.openfile

So I’m creating a Watermark App with Tkinter and PIL for my portfolio project.
I seem to have the function doing everything properly but when I try to display the image after opening it from fieldialog.openfile in does not appear on the canvas. I feel very unintelligent for not being able to do this and I feel like the fix will be simple, lol! Any help would be appreciated!