<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Dear Colleagues,<div><br></div><div>I found a small bug in TIF_ReaderClass.Reader function. To reproduce it just open the image from the attachment by doing "Import / Image / from TIF image file". This image was not created by a detector directly, but made from a detector-produced .h5 file for convenience.</div><div><br></div><div> When TIF_ReaderClass.Reader is called, GetTifData function  fails on it (imports/G2img_1TIF.py line 68), then the image is correctly opened with PIL, but on lines 86 and 87 .shape property is called on a PIL.Image object, which it does not have. If I insert a line</div><div>self.Image.shape = self.Image.size<br></div><div>on line 75, everything works fine (I used this hack because there are a few .shape calls down the line and this is an easy way to check if they are the only issue, and they are).</div><div><br></div><div>Thank you and best regards,</div><div>Gleb Dovzhenko.</div><div></div><div class="gmail_chip gmail_drive_chip" style="width:396px;height:18px;max-height:18px;background-color:rgb(245,245,245);padding:5px;font-family:arial;font-weight:bold;font-size:13px;border:1px solid rgb(221,221,221);line-height:1"><a href="https://drive.google.com/file/d/1UgSZCUuiHAN9XX7uAOa4QzjhtvnAoDBE/view?usp=drive_web" target="_blank" style="display:inline-block;max-width:366px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none;padding:1px 0;border:none"><img style="vertical-align: bottom; border: none;" src="https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png"> <span dir="ltr" style="vertical-align:bottom;text-decoration:none">lab6_00001_Frame_00001.tif</span></a><img src="//ssl.gstatic.com/ui/v1/icons/common/x_8px.png" style="opacity: 0.55; cursor: pointer; float: right; position: relative; top: -1px; display: none;"></div><div></div></div></div></div></div></div></div></div>