Results 1568 comments of John Cupitt

I did the nip2 docs in latex, hoping to be able to generate nice HTML from them. But it never worked very well :( I'm planning to redo the docs...

Hi @MartinBuessemeyer, Sorry, I don't think this is going to work :( The best you can do with pyvips is something like (untested!!): ```python tiles = [some expression to yield...

You'd need to add a new operator to libvips which would fire a signal (eg. `prepare`) to fill a tile. It should probably have an optional mutex to make these...

Yes, it's a terrible hack. I think cell drag-drop puts a pointer on the clipboard (!!). Hopefully nip4 will fix this.

I would use "pin me up", or drag files from your file manager. You can also load multiple files in one operation for batch processing.

Hi @ankane, thanks for this! Unfortunately, `vips_image_get_data()` is not thread-safe -- it transforms the argument into a memory image, and if some other thread is using the same image for...

Yes, that's better. Having `unsafe_data_ptr` in the public API makes me very uneasy -- it's likely to cause mysterious random crashes. Maybe just have `read_ptr` and hide the unsafe code...

Great! Please add a note to the changelog (and credit yourself!), and a note to the docs saying this is potentially a very expensive operation. Thank you for doing this...

You're right, I'd expect `copy_memory` and `write_to_memory` to be similar, but `copy_memory` is a lot slower. I'll have a look.

I made a small C prog for testing: ```C // compile with // gcc -g -Wall copywrite.c `pkg-config vips --cflags --libs` #include int main(int argc, char **argv) { VIPS_INIT(argv[0]); //...