John Cupitt
John Cupitt
Oh, you're already putting the mask into the alpha, I missed the `[3]` at the end. Just flatten, eg.: ```python dim.flatten(background=255).write_to_file('trial2.tiff', pyramid=True, tile=True, compression='jpeg') ``` That'll flatten out the alpha...
libvips automatically flattens RGBA to RGB when you save TIFF with JPEG compression, so this will work too: ```python dim.write_to_file('trial2.tiff', pyramid=True, tile=True, compression='jpeg', background=255) ```
Hi Joe, it should work. If you can make an example that reproduces the fault I can have a look.
Hi @resonating-sirsh, It'll keep some part of every input image in memory, so there is a limit. It'll also keep several hundred scanlines of the output image (so memuse will...
Yes there are lots of things you can tweak. The first thing is to make a representative benchmark.
The disc threshold is the size of the uncompressed image, so width * height * bands * sizeof( element ). You can put the unit after the number, so eg....
Hi @MAJAQA, Did you install python via the MS store? I think that version won't work with third-party libraries (like pyvips), you are locked into their set of extensions. I...
To copy-paste from the linked issue, the MS store version seems to run at least partially inside the UWP sandbox, so it will not work with things like pyvips.
Could it be picking different loaders? I would try using `openslideload` instead of `new_from_file`, and `openslideload_buffer` instead of `new_from_buffer`.
Ah! It's coming back to me. Yes, openslide can only load images from the filesystem. For example, MRXS images are kept in quite a large directory tree and there isn't...