First time here? Check out the FAQ!

Ask Your Question
0

Show PIL image on notebook

asked 12 years ago

Éliade gravatar image

On the notebook, after the following code

import Image
im = Image.open(DATA+'tree.png')
im2 = im.rotate(90)

what is the instruction that will show the PIL im2 image ?

Preview: (hide)

Comments

Just a guess - close the image? It has to actually save in the notebook cell directory to show up.

kcrisman gravatar imagekcrisman ( 12 years ago )

1 Answer

Sort by » oldest newest most voted
2

answered 12 years ago

ndomes gravatar image
import Image
im = Image.open(DATA+'tree.png')
im2 = im.rotate(90)
im2.save('tree2.png')
Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 12 years ago

Seen: 764 times

Last updated: Aug 14 '12