Results 1568 comments of John Cupitt

I made a version of your original code for testing: ```python #!/usr/bin/python3 from multiprocessing import Pool import os import pyvips as vips from PIL import Image import time import matplotlib.pyplot...

Oh, if I put the x loop inside the thread, like this: ```python #!/usr/bin/python3 from multiprocessing import Pool import pyvips as vips import sys def extract_and_save_patch(y, slide_filename, mask_filename, patch_size, mask_overlap):...

You need 8.14 for the `rgb` mode.

Hi @SimplyCorbett, I'm planning some work on the jxl connector in September, let's do this at the same time.

Yes, that's on the TODO list as well, we have some EU money to help fund development: https://nlnet.nl/project/libvips/

There's a PR for jxlsave bitdepth! Finally. It seems to work, though jxlload will need a matching change to left-shift low-bitdepth images, as per libvips convention.

> Also I’m not sure if progressive encoding is enabled by default but if that option can be added as well it would be excellent. I think JXLs are always...

Hello @JulienMassonnet, libvips will automatically disable chroma subsample for Q >= 90 (imagemagick does this too). For example: ``` $ vips copy k2.jpg x.tif[tile,pyramid,compression=jpeg,Q=89] $ tiffinfo x.tif === TIFF directory...

You can copy the JPEG DICOM tiles out directly into libtiff, with a bit of work. Have you considered this? You could save all decompress/recompress, and it should be very...

Hi @Tomaster134, > openslide2vips: reading region: Couldn't open test/test.svs: Too many open files Windows has a limit of 1024 open files, perhaps you've somehow hit that? Restarting your python session...