<div dir="ltr"><div><div><div><div>Hi Benjamin,<br><br><br></div>I finally found the problem. I only checked the version for python-openslide and not the openslide library itself; turns out mine was v3.4.0 and the other was v3.4.1. It now works fine after upgrading to v3.4.1.<br><br></div>Thank you so much for your reply!<br><br></div><br></div>Kathleen<br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 11, 2017 at 1:36 PM, Benjamin Gilbert <span dir="ltr"><<a href="mailto:bgilbert@cs.cmu.edu" target="_blank">bgilbert@cs.cmu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, Nov 27, 2017 at 02:18:02PM +0800, Kathleen Sucipto wrote:<br>
> I just installed python-openslide 1.1.0 and ran the example code<br>
> deepzoom_tile.py on a tiff image. Somehow it produces this error message:<br>
><br>
</span>> [...]<br>
<span class="">>   File "/usr/lib/python2.7/dist-<wbr>packages/openslide/lowlevel.<wbr>py", line 217,<br>
> in read_region<br>
>     w, h))<br>
> OpenSlideError: negative width (259) or negative height (-32) not allowed<br>
><br>
> I tried it on a different computer and it works fine. Both of them use<br>
> Ubuntu 16.04 - 64 bit. Any idea why this issue occurred?<br>
<br>
</span>Hi Kathleen,<br>
<br>
That's strange; it sounds like a bug.  Do both machines have OpenSlide<br>
Python 1.1.0 (not 1.1.1) and are you tiling the same slide on each?  Are you<br>
passing any options to deepzoom_tile.py?  Could you run<br>
openslide-show-properties on the slide file and post the output (redacted if<br>
necessary)?<br>
<span class="HOEnZb"><font color="#888888"><br>
--Benjamin Gilbert<br>
</font></span></blockquote></div><br></div></div>