Results 1568 comments of John Cupitt

Regarding uppercase, you can pass things like compression as enums or as strings. So eg.: ```python image.tiffsave("xx", compression=pyvips.enums.ForeignTiffCompression.JPEG) image.tiffsave("xx", compression="jpeg") ``` Are equivalent. I find the strings more convenient, but...

It's to do with the way libvips opens files. There's a chapter in the docs, if you've not seen it: https://www.libvips.org/API/current/How-it-opens-files.md.html It explains what seq mode does and how if...

(this PC has 32 cores, the threading overhead will often be less)

Hi, libvips can't write `.ndpi` files, it can only read them. You could make a standard pyramidal TIFF, would that work?

Hello, libvips is currently fighting this issue too. See also https://github.com/strukturag/libheif/issues/117 for previous battles with orientation. The situation seems to be that orientation is recorded in two places: as the...

Hi Dirk, thank you for replying so quickly. I'll remove our case 2 then, though I think that means some malformed images will not rotate correctly. I suppose I can...

I don't know if it would fit your needs, but sharp supports openslide file read: https://github.com/lovell/sharp http://sharp.dimens.io/en/stable/ It'll let you pull out areas from specific layers and render to jpg/png/whatever,...

@xmkevin, sharp can read all the formats that openslide can read, you just need to enable openslide support. There are some notes in the README.

There's now an experimental node binding for the whole of libvips here: https://github.com/jcupitt/node-vips I'm not much of a node programmer, so though it works, it needs some finishing up.

I added an openslide example to show the API: ```javascript var vips = require('vips'); // get a rect from a level // autocrop trims off pixels outside the image bounds...