title: how to fit image to label in Python
body: <p>So in python i have a Label that I'm using to display images. But the images are rather large and they exceed the size of the label. Is there a way to load the images to fit the label without resizing them?</p>
  <p>here is what i do now.</p>
  <pre><code>labelWidth = top.winfo_screenwidth()
  labelHeight = top.winfo_screenheight() 
  maxsize = (labelWidth, labelHeight)
  im.thumbnail(maxsize, Image.ANTIALIAS)
  tkpi = ImageTk.PhotoImage(im)
  </code></pre>
  <p>but this takes way to long.</p>