title: Opening a GIF picture with PIL in Python
body: <p>I am trying to open a GIF file but it is coming up with a syntax error i do not understand. Does the image have to change to PNG / JPEG because i am trying to keep transparency which would be lost if i have to change the file type.</p>
  
  <p><a href="https://i.stack.imgur.com/WHrFS.png" rel="nofollow noreferrer">The Syntax Error i don't understand</a></p>
  
  <p>I have tried to keep the image and open it with Turtle by using screen.addshape. That works for the image however i have had a problem with resizing the image so i am having to use the PIL library to open the images and then resize them</p>