Importing image into Tkinter - Python 3.5
<p>I'm majorly struggling to import an image into <strong>Tkinter</strong> for <strong>Python 3.5</strong>, this is for my A2 project and have hit a brick wall with every method of <strong>importing a .JPG file</strong> to my window. What I have below is my GUI layer for another window, based off another thread I found but didn't work at all. Any assistance appreciated.</p>

<pre><code>import tkinter 
from tkinter import *

root=Tk()
root.geometry('1000x700')
root.resizable(False, False)
root.title("Skyrim: After Alduin")

photo = PhotoImage(file="Skyrim_Map")
map=Label(root, image=photo)
map.photo=photo
map.pack()

root.mainloop()
</code></pre>

<p><strong>Here's the error I receive:</strong></p>

<pre><code>Traceback (most recent call last):
  File "E:\Programming\Text_Adventure_Project\GUI_Interface-S_AA.py", line 14, in &lt;module&gt;
    photo = PhotoImage(file="Skyrim_Map")
  File "C:\Users\Harrison\AppData\Local\Programs\Python\Python35\lib\tkinter\__init__.py", line 3393, in __init__
    Image.__init__(self, 'photo', name, cnf, master, **kw)
  File "C:\Users\Harrison\AppData\Local\Programs\Python\Python35\lib\tkinter\__init__.py", line 3349, in __init__
    self.tk.call(('image', 'create', imgtype, name,) + options)
_tkinter.TclError: couldn't open "Skyrim_Map": no such file or directory
</code></pre>

<p>First check the path if with the correct path still persist the error "no such file or directory" please edit and put the newest version of your code. 
If the error is "couldn't recognize data in image file" you can correct using PIL</p>

<pre><code> [...]
 from PIL import ImageTk

 [...]
 photo = ImageTk.PhotoImage(file='Skyrim_Map.jpg')
 [...]
</code></pre>

python image import tkinter tk