ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 14 Aug 2012 02:47:55 +0200Show PIL image on notebookhttps://ask.sagemath.org/question/9230/show-pil-image-on-notebook/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 ?Mon, 13 Aug 2012 19:04:06 +0200https://ask.sagemath.org/question/9230/show-pil-image-on-notebook/Comment by kcrisman for <p>On the notebook, after the following code</p>
<pre><code>import Image
im = Image.open(DATA+'tree.png')
im2 = im.rotate(90)
</code></pre>
<p>what is the instruction that will show the PIL im2 image ?</p>
https://ask.sagemath.org/question/9230/show-pil-image-on-notebook/?comment=19231#post-id-19231Just a guess - close the image? It has to actually save in the notebook cell directory to show up.Mon, 13 Aug 2012 21:59:41 +0200https://ask.sagemath.org/question/9230/show-pil-image-on-notebook/?comment=19231#post-id-19231Answer by ndomes for <p>On the notebook, after the following code</p>
<pre><code>import Image
im = Image.open(DATA+'tree.png')
im2 = im.rotate(90)
</code></pre>
<p>what is the instruction that will show the PIL im2 image ?</p>
https://ask.sagemath.org/question/9230/show-pil-image-on-notebook/?answer=13919#post-id-13919
import Image
im = Image.open(DATA+'tree.png')
im2 = im.rotate(90)
im2.save('tree2.png')Tue, 14 Aug 2012 02:47:55 +0200https://ask.sagemath.org/question/9230/show-pil-image-on-notebook/?answer=13919#post-id-13919