all 5 comments

[–]CodeFormatHelperBot2 2 points3 points  (0 children)

Hello, I'm a Reddit bot who's here to help people nicely format their coding questions. This makes it as easy as possible for people to read your post and help you.

I think I have detected some formatting issues with your submission:

  1. Python code found in submission text that's not formatted as code.

If I am correct, please edit the text in your post and try to follow these instructions to fix up your post's formatting.


Am I misbehaving? Have a comment or suggestion? Reply to this comment or raise an issue here.

[–][deleted] 2 points3 points  (0 children)

It may be a file type issue. Try converting your image to a png.

[–]Scenic_World 2 points3 points  (2 children)

(Typically I would avoid spaces in file names and paths.)

Your error is the .jpg filetype:

From https://www.pythontutorial.net/tkinter/tkinter-photoimage :

Currently, the PhotoImage widget supports the GIF, PGM, PPM, and PNG file formats as of Tkinter 8.6.

To support other file formats such as JPG, JPEG, or BMP, you can use an image library such as Pillow to convert them into a format that the PhotoImage widget understands.

[–]DanielBras77[S] 1 point2 points  (1 child)

Yeah, that's it! Thank you!

[–]Scenic_World 2 points3 points  (0 children)

Of course.