Results 1568 comments of John Cupitt

Hi @mgbee8, `dzsave` writes the tiles to the memory target as a zip file, so you'll need to use some other python lib to parse the zip and extract the...

Hi @JannKleen, The pyvips return value documentation is autogenerated, and not very well. The list of returns is for operations which can return multiple results, for example: ``` $ python3...

There's a `pagesplit` convenience method which will cut a vertical image into pages for you: https://libvips.github.io/pyvips/vimage.html?highlight=pagesp#pyvips.Image.pagesplit So perhaps: ``` $ python3 Python 3.10.7 (main, Nov 24 2022, 19:45:47) [GCC 12.2.0]...

You're right, if pages change size you need to loop over `n` yourself. The libvips multipage system is really for volumetric images and I suppose animations. libvips keeps a cache...

Hi @erdemgezer, There have been some improvements to locking in text rendering in recent libvipses. Have you tried your Ubuntu example with current stable libvips (8.16.1)? Text rendering is extremely...

I agree, `g_ascii_isdigit()` would probably be the best solution to this.

Hello @Julianiolo, Yes, this API is a bit of a mess, which is why it's still got the `vips__` prefix. I think we were hoping someone would think of something...

Hello @sinamcr7, Yes, have a look at `find_trim`: https://www.libvips.org/API/current/libvips-arithmetic.html#vips-find-trim ``` $ python Python 3.12.3 (main, Jul 31 2024, 17:43:48) [GCC 13.2.0] on linux Type "help", "copyright", "credits" or "license" for...

Hi @gmcmicken, The "blend alpha" menu item is implemented in nip2's macro language -- if you click Toolkits / Edit you can read (and edit) the source code. It's in...

Ah OK, then you can just cook up your own overlay pretty easily, it should just be a few lines of code. If you can make some sample images and...