Q:

How do I place an image (.png) within a `LabelFrame`, and resize it, in Tkinter? 

I'm trying to place a .png image within a LabelFrame in a Tkinter window.  I imported PIL so .png image types should be supported (right?).  I can't seem to get the image to show up.  
Here is my revised code:
import Tkinter
from Tkinter import *
from PIL import Image, ImageTk

root = Tk()

make_frame = LabelFrame(root, text="Sample Image", width=150, height=150)
make_frame.pack()

stim = "image.png"
width = 100
height = 100
stim1 = stim.resize((width, height), Image. ANTIALIAS)
img = ImageTk. PhotoImage(image.open(stim1))
in_frame = Label(make_frame, image = img)
in_frame.pack()

root.mainloop()

With this code, I got an AttributeError that reads: "'str' has no attribute 'resize'"

A:

@Mickey,
You have to call the .resize method on the PIL.Image object and not the filename, which is a string.  Also, you may prefer to use PIL.Image.thumbnail instead of PIL.Image.resize, for reasons described clearly here.  Your code was close, but this might be what you need:
import Tkinter
from Tkinter import *
from PIL import Image, ImageTk

root = Tk()

make_frame = LabelFrame(root, text="Sample Image", width=100, height=100)
make_frame.pack()

stim_filename = "image.png"

# create the PIL image object:
PIL_image = Image.open(stim_filename)

width = 100
height = 100

# You may prefer to use Image.thumbnail instead
# Set use_resize to False to use Image.thumbnail
use_resize = True

if use_resize:
    # Image.resize returns a new PIL.Image of the specified size
    PIL_image_small = PIL_image.resize((width,height), Image. ANTIALIAS)
else:
    # Image.thumbnail converts the image to a thumbnail, in place
    PIL_image_small = PIL_image
    PIL_image_small.thumbnail((width,height), Image. ANTIALIAS)

# now create the ImageTk PhotoImage:
img = ImageTk. PhotoImage(PIL_image_small)
in_frame = Label(make_frame, image = img)
in_frame.pack()

root.mainloop()

