Failed read Hamamatsu top level region
Benjamin Gilbert
bgilbert at cs.cmu.edu
Thu Mar 9 00:14:51 EST 2017
On Wed, Mar 08, 2017 at 02:30:59AM +0000, zhaoy at motic.com wrote:
> The OpenSlide SDK failed to call openslide_read_region at top level region
> (level[8]), and NULL data returned. The last error message is “Corrupt
> JPEG data: premature end of data segment”. Other level (level[0-7])
> region images can be read by SDK. But the viewer of Hamamastu works fine
> with this slide. There are some other slides from the same scanner.
> OpenSlide SDK can read all of them. I don’t know what makes this slide
> file special.
Thanks for the report. I'll take a look.
> BTW, does anyone use OpenSlide Windows SDK with no-english file path?
> According to the API document, the file path parameter should be UTF8
> encoded. But I found the openslide_open (g_utf8_to_utf16 in the down
> layer) failed with a UTF8 string. It only accept OEM codepage encoded
> char*.
OpenSlide 3.4.1 only accepted the OEM code page, which was a bug. This is
fixed in Git master.
--Benjamin Gilbert
More information about the openslide-users
mailing list