Ask Your Question
0

Show PIL image on notebook

asked 2012-08-13 19:04:06 +0100

É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 21:59:41 +0100 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2012-08-14 02:47:55 +0100

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 19:04:06 +0100

Seen: 720 times

Last updated: Aug 14 '12