title: Tkinter error: Couldn't recognize data in image file
body: <p>I'm trying to put a jpg image to a tkinter canvas. tkinter gives me this error:</p>
  
  <blockquote>
    <p>couldn't recognize data in image file</p>
  </blockquote>
  
  <p>I use the code from the documentation:</p>
  
  <pre><code>canv = Canvas(root, width=80, height=80, bg='white')
  canv.grid(row=2, column=3)
  
  img = PhotoImage(file="bll.jpg")
  canv.create_image(20,20, anchor=NW, image=img)
  </code></pre>
  
  <p>Same thing with png images. Even tried to put an image into a label widget, but got the same error. What's wrong?</p>
  
  <p>I am using Python 3 on Mac. Python file and image are in the same folder.</p>