John Cupitt
John Cupitt
Ah gotcha. Yes, I'd make a `vips_to_numpy()` conversion function and pass everything through that. To combine after your `@`, go back to vips images again and use `bandjoin`: ```python rgb...
Good idea, new PR here: https://github.com/vinta/awesome-python/pull/1579
Hi @snigdhaAgarwal, do you mean crop a rectangle? Sure, just: ```python image = pyvips.Image.new_from_file("huge.svs") area = image.crop(10000, 12000, 5000, 5000) area.write_to_file("tiny.tif") ``` Where the four numbers are left / top...
You can use `svgload` to draw a mask from a set of datapoints, then use the mask to set the image alpha. Unfortunately, `svgload` is limited to 32,000 x 32,000...
I would guess there's some problem with the viewer. You'd need to give some details about the viewer, processing, parameters, source file, etc.
libvips saves as a simple flat TIFF by default. Perhaps your viewer is doing nearest neighbour for zoom out? Try: ```python dim.write_to_file("x.tif", pyramid=True, tile=True, compression="jpeg") ``` Deepzoom works well too,...
Sorry, that's probably max speed. I guess you're using libjpeg-turbo?
That's probably all you need to do to enable it. You could try changing these lines in svgload.c: ```C if( vips_foreign_load_svg_parse( svg, t[0] ) || vips_image_generate( t[0], NULL, vips_foreign_load_svg_generate, NULL,...
On 1. I guess this is a JPEG-tiled TIFF, is that right? Yes, many platforms won't open TIFFs like this, sadly. You'll need to use another format, or another viewer....
Have you tried setting `pyramid`? I see: ``` $ vips copy summer8.tif x.tif[tile,compression=jpeg,pyramid] $ vipsheader x.tif x.tif: 18008x7588 uchar, 3 bands, srgb, tiffload $ ~/packages/bioformats/QuPath-0.2.3/bin/QuPath-0.2.3 x.tif ... ``` And it...