I am using Lucid - Ubuntu on an FX- Sony laptop which is ten years old but works excellent. The pictures I have tried are both RGB and grayscale tif images. Some of them do open up but not others and I am not sure what type of tifs open and why do the other tifs do not. I will try im.mode.<div>
I have listed the tiffinfo properties of one type of tif that I could not open in the postings.</div><div>Thanks,</div><div>gujax<br><br><div class="gmail_quote">On Fri, Oct 1, 2010 at 12:45 PM, Edward Cannon <span dir="ltr"><<a href="mailto:edward@unicornschool.org">edward@unicornschool.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">what os and verson are you using. show is pretty much for debugging<br>
only, and is pretty sketchy on windows. also try looking at im.mode,<br>
is it RGB or something else?<br>
Edward Cannon<br>
<div><div></div><div class="h5"><br>
On Tue, Sep 21, 2010 at 10:24 PM, Rajan Gurjar <<a href="mailto:rjngrj2010@gmail.com">rjngrj2010@gmail.com</a>> wrote:<br>
> Image.open('filename') and <a href="http://im.info" target="_blank">im.info</a> gives the following<br>
><br>
> (640, 480)<br>
> {'resolution': (1, 1), 'compression': 'raw'}<br>
> F;32BF<br>
> TIFF<br>
><br>
><br>
> But when I run the im.show() it gives the following error.<br>
>>>> im.show()<br>
> Traceback (most recent call last):<br>
> File "<pyshell#0>", line 1, in <module><br>
> im.show()<br>
> File "/usr/lib/python2.6/dist-packages/PIL/Image.py", line 1483, in<br>
> show<br>
> _show(self, title=title, command=command)<br>
> File "/usr/lib/python2.6/dist-packages/PIL/Image.py", line 2123, in<br>
> _show<br>
> apply(_showxv, (image,), options)<br>
> File "/usr/lib/python2.6/dist-packages/PIL/Image.py", line 2127, in<br>
> _showxv<br>
> apply(ImageShow.show, (image, title), options)<br>
> File "/usr/lib/python2.6/dist-packages/PIL/ImageShow.py", line 41, in<br>
> show<br>
> if viewer.show(image, title=title, **options):<br>
> File "/usr/lib/python2.6/dist-packages/PIL/ImageShow.py", line 62, in<br>
> show<br>
> base = Image.getmodebase(image.mode)<br>
> File "/usr/lib/python2.6/dist-packages/PIL/Image.py", line 245, in<br>
> getmodebase<br>
> return ImageMode.getmode(mode).basemode<br>
> File "/usr/lib/python2.6/dist-packages/PIL/ImageMode.py", line 50, in<br>
> getmode<br>
> return _modes[mode]<br>
> KeyError: 'F;32BF'<br>
><br>
> I have no idea why this happens.<br>
> I will appreciate your response. The file opens with ImageJ and<br>
> ImageMagick. It is a 8-bit RGB file.<br>
> I have looked up Google and came across few similar queries but do not<br>
> find any resolution other than suggestions to link xv to ImageMagick.<br>
> Because the solutions are old i.e., dated in 2007, I am not sure if this<br>
> is a fix. Please help.<br>
> Thanks,<br>
> Rajan<br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Image-SIG maillist - <a href="mailto:Image-SIG@python.org">Image-SIG@python.org</a><br>
> <a href="http://mail.python.org/mailman/listinfo/image-sig" target="_blank">http://mail.python.org/mailman/listinfo/image-sig</a><br>
><br>
><br>
</blockquote></div><br></div>