Traceback (most recent call last):
File "/home/patrick/test.py", line 11, in <module>
slide.read_region((1920, 1920), 4, (1067, 1017))
File "/home/patrick/virtualenvs/histomics/src/wsidicom/wsidicom/wsidicom.py", line 400, in read_region
image = wsi_level.get_region(scaled_region, z, path, threads)
File "/home/patrick/virtualenvs/histomics/src/wsidicom/wsidicom/group/group.py", line 318, in get_region
image = instance.image_data.stitch_tiles(region, path, z, threads)
File "/home/patrick/virtualenvs/histomics/src/wsidicom/wsidicom/instance/image_data.py", line 525, in stitch_tiles
self._paste_tiles(
File "/home/patrick/virtualenvs/histomics/src/wsidicom/wsidicom/instance/image_data.py", line 576, in _paste_tiles
pool.map(thread_paste, tile_region.chunked_iterate_all(threads))
File "/home/patrick/virtualenvs/histomics/src/wsidicom/wsidicom/thread.py", line 41, in map
return (item for item in list(map(fn, *iterables)))
File "/home/patrick/virtualenvs/histomics/src/wsidicom/wsidicom/instance/image_data.py", line 568, in thread_paste
for tile_point, tile in zip(
File "/home/patrick/virtualenvs/histomics/src/wsidicom/wsidicom/web/wsidicom_web_image_data.py", line 102, in get_decoded_tiles
yield Image.open(io.BytesIO(frame))
File "/home/patrick/virtualenvs/histomics/lib/python3.9/site-packages/PIL/Image.py", line 3298, in open
raise UnidentifiedImageError(msg)
PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x7f4aadc35680>
Note that this example contains uncompressed data.
Do you know why this error is occurring? Here is a reproducer:
I get this error:
Note that this example contains uncompressed data.