Results 1568 comments of John Cupitt

Hello @sinamehrabi, pyvips and libvips are used in huge systems without problems, so I doubt if you have a memory leak. Probably it's a combination of memory fragmentation and the...

I graphed memuse vs. time: ![x](https://user-images.githubusercontent.com/580843/147413087-36103035-a739-4d38-9f20-a0d37a14aa1a.png)

Hello @petoor, `composite` does fancy alpha compositing using the PDF blend modes (mix, lighten, dodge, etc.), so all the images it combines need to have alpha channels. https://libvips.github.io/libvips/API/current/libvips-conversion.html#vips-composite If you...

`draw_image` will work for any number of bands, but the two images must match, or one must have one band. https://libvips.github.io/libvips/API/current/libvips-draw.html#vips-draw-image But ... don't use the `draw_` operations! They are...

`embed` is the fastest, then `insert`, then `composite`.

Hi @Ksenia-Evin, I had a quick look at `gdal2mbtiles` and they have their own libvips loader: https://github.com/ecometrica/gdal2mbtiles/blob/master/gdal2mbtiles/vips.py#L87 I don't really understand why they do this, but I think that's the...

Hello @anaidasdfg, libvips doesn't have destructive assignment -- you can only make new images, you can't update existing images. Instead, you need to take the SV channels and attach the...

You could also consider using LCh rather than HSV. LCh is quite a bit more accurate, though of course that may not be important in your application. https://en.wikipedia.org/wiki/CIELAB_color_space#Cylindrical_model

Hi @HeyUygulamasi, If you post a complete sample program I can run that demonstrates the issue, I can take a look.

Are you are you need such huge tiles? They will be extremely inefficient. I would stay under 512x512. The usual size is 256x256. TIFF compression is always single-threaded, unfortunately, because...