Results 1568 comments of John Cupitt

Thinking about this again after a bit more coffee, the `xres` and `yres` arguments to `copy` are in pixels/mm (like DPI). A WSI image might be 100,000 x 100,000 pixels...

So it sounds like everything is correct, is that right? > I'm also wondering why 0.01 mm was converted to 0.1000000015 cm (floating-point rounding error?). Yes, a rounding error, I...

Hi @jil24, pyvips supports two modes: API and ABI. In API mode, it generates C source for the binding at install time (during the execution of `setup.py`) and uses that...

For the PNG version, you can get a similar result like this: ``` vips copy gopher.jpg gopher.png[palette,bitdepth=4,compression=9,dither=0] ``` To make: ![gopher](https://user-images.githubusercontent.com/580843/152638998-c953a4f1-1b04-4edc-ada4-386c4613eb17.png) Which is 54kb. These settings depend on the image...

Oh, one more thing (sorry) libvips has a plugin system, so you could replace (for example) the jpeg compressor at runtime if you wanted. It wouldn't be much work to...

Hello all, libvips has supported AVIF since version 8.9 -- it's just a question of building with the right set of supporting libraries. On ubuntu 20.04, for example, install `libheif-dev`...

It should just work on macos with brew. On most linuxes you'll probably need to build your own libheif, and that'll need rav1e, dav1d or libaom for AVIF support.

Hi @SergeTauger, Your mosaic is not so large, it should work fine. I would assemble in perhaps 5x5 blocks, ie. join 5 tiles left-right to make a strip, then join...

... your error comes from saving an intermediate image, or doing some intermediate processing. `globalbalance` needs just an image built from a set of join operations.

hwindow and harea set the size of the search area for each tie point. Set harea larger to search a bigger area, set hwindow larger to increase the size of...