<div dir="ltr">Dear Openslide developers,<div><br></div><div>Regarding the Aperio format, we noticed some edge cases that do not allow the current openslide aperio implementation to parse correctly the AppMag of the WSI.</div><div><br></div><div>An example image is provided at this link: </div><div><a href="https://portal.gdc.cancer.gov/files/1fd8ba85-547b-435f-830e-a436746990fd">https://portal.gdc.cancer.gov/files/1fd8ba85-547b-435f-830e-a436746990fd</a> </div><div><br></div><div>Using tiffinfo you can see that:</div><div><pre class="gmail-c-mrkdwn__pre" style="box-sizing:inherit;margin-top:4px;margin-bottom:4px;padding:8px;font-size:12px;line-height:1.50001;font-variant-ligatures:none;white-space:pre-wrap;word-break:normal;border-radius:4px;color:rgb(29,28,29);font-family:Monaco,Menlo,Consolas,"Courier New",monospace">95744x86336 (256x256) J2K/KDU Q=70;Leica SCN400;Leica SCN ver.1.5.1.10804 2012/05/10 13:29:07;1.5.1.10864|Filename = ImageCollection_0000000935|Date = 2014-07-23T16:33:58.37Z|AppMag = 40.000000|MPP = 0.250000|OriginalWidth = 86336|OriginalHeight = 95744</pre>As you can see, the AppMag metadata is represented as a float value instead as of an int (|AppMag = 40|) . This leads to an unparsed AppMag. We propose to change "_openslide_duplicate_int_prop" into "_openslide_duplicate_double_prop" or allow the int version to parse and then cast float values in the following line of code:</div><div><br></div><div><a href="https://github.com/openslide/openslide/blob/c3391de109f736e8164bec27176e42bacae462a5/src/openslide-vendor-aperio.c#L327">https://github.com/openslide/openslide/blob/c3391de109f736e8164bec27176e42bacae462a5/src/openslide-vendor-aperio.c#L327</a><span style="color:rgb(29,28,29);font-family:Monaco,Menlo,Consolas,"Courier New",monospace;font-size:12px;font-variant-ligatures:none;white-space:pre-wrap"><br></span></div><div><br></div><div>Would it be possible for you to solve this issue or do you accept pull-requests?</div><div><br></div><div>Best regards, </div><div><br></div><div>Leonardo Romor</div></div>

<br>
<div><font face="Arial, Helvetica, sans-serif"><span style="font-size:13px">--</span></font></div><font face="Arial, Helvetica, sans-serif"><span style="font-size:13px">This e-mail (including any attachments) may contain information that is private, confidential, or protected by attorney-client or other privilege.  If you received this e-mail in error, please delete it from your system without copying it and notify sender by reply e-mail.</span></font>