Open
Description
I have an *.svs image made with an Aperio slide scanner, which apparently uses 33003 compression. I have no problem loading the image when reading directly from a file:
image = vips.Image.new_from_file(path)
region = image.crop(x, y, w, h)
avg = region.avg()
But if I try to load the image via buffer:
with open(path, 'rb') as f:
buffer = f.read()
image = vips.Image.new_from_buffer(buffer, "")
region = image.crop(x, y, w, h)
avg = region.avg()
I get the error message:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/shawarma/venv/lib/python3.8/site-packages/pyvips/vimage.py", line 919, in call_function
return pyvips.Operation.call(name, self, *args, **kwargs)
File "/home/shawarma/venv/lib/python3.8/site-packages/pyvips/voperation.py", line 282, in call
raise Error('unable to call {0}'.format(operation_name))
pyvips.error.Error: unable to call avg
source input: Compression scheme 33003 tile decoding is not implemented
Any ideas?