Ask Your Question
0

Show PIL image on notebook

asked 2012-08-13 12:04:06 -0500

É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 ?

edit retag flag offensive close merge delete

Comments

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

kcrisman gravatar imagekcrisman ( 2012-08-13 14:59:41 -0500 )edit

1 answer

Sort by » oldest newest most voted
2

answered 2012-08-13 19:47:55 -0500

ndomes gravatar image
import Image
im = Image.open(DATA+'tree.png')
im2 = im.rotate(90)
im2.save('tree2.png')
edit flag offensive delete link more

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: 2012-08-13 12:04:06 -0500

Seen: 204 times

Last updated: Aug 13 '12