John Cupitt
John Cupitt
Hello, thumbnail plus crop will be extremely slow. It's better to make a pipeline which generates the whole image, then ask for chunks of that. Is this for a desktop...
Oh, vipsdisp has other keys: 1, 2, 3, 4 ... pick a zoom level. ctrl + 1, 2, 3, 4 ... pick a zoom out level 0 ... zoom to...
Is this for jupyter? That would be tricky. I think you would have to output some javascript which implemented the viewer (perhaps with openseadragon), and then connect that to a...
The 2s is for openslide images (up to about 300,000 x 300,000 pixels), it'd be quicker for more normal files. I made a node binding for libvips: https://github.com/libvips/node-vips You could...
Hi @jacopoabramo, TIFF writing is complex. The libvips writer has three interlocking features around this: 1. It can write a single, large image as a multipage pyramidal TIFF. Page 0...
You can use `n=XX` to load a set of pages from an OME-TIFF. For example: ``` john@banana ~/pics/ome $ python3 Python 3.9.7 (default, Sep 10 2021, 14:59:43) [GCC 11.2.0] on...
... so your code might be: ```python tiff_files = [pyvips.Image.new_from_file(file, n=5) for file in listdir(getcwd()) if file.endswith(".tif") ] final_stack_filename = "full_stack.tif" # join all list elements final_image = pyvips.Image.arrayjoin(tiff_files, across=1)...
Woah, you have 510 slices in a stack? That's a lot. Is this hyperspectral data? To be clear, your source TIFFs are stacks with 500+ pages, and within each TIFF,...
Sorry, I'm still confused. The 510 etc. above are the number of slices, aren't they? So in total you have (510 + 510 + 510 + 510 + 510 +...
Your original code has 4000 there, which would cause the error. Change it to 2048.