Results 1568 comments of John Cupitt

Now I check again I remember that there's some work to do before preloading will work with php-vips. I'll mention this too.

That's true, though of course you can run native code without FFI. Just write a C source file to `/tmp/my-terrible-attack.c`, then compile and run it. Sorry to ping you @chregu...

Hello, this looks like a nice project. But I wonder about the benchmark -- running: ``` vips invert sample.png x.png ``` Spends ~75% of CPU in libz, and more than...

The first test, for example, will be spending 90% of the run time inside libpng, so the important factors in the observed speed will be: - what version of libpng...

I tried adding a PNG invert task to the benchmark (the one in the repo is JPG): ```rust fn invert_image_png() { // Open the image (a PhotonImage is returned) let...

Hi, libvips maintainer here, could you perhaps be running an older libvips? I pushed 8.10.6 to homebrew a couple of days ago and it ought to improve PNG loading. I...

Use the `interlace` option to turn on progressive jpg output: http://www.vips.ecs.soton.ac.uk/supported/current/doc/html/libvips/VipsForeignSave.html#vips-jpegsave Progressive jpg read should just work, hopefully.

Hi, I just came across this issue. I've been tinkering with an FFI-based libvips binding for Lua: https://github.com/jcupitt/lua-vips It's turned out to be pretty simple. There's a "class" for GValue...

I think it would probably be safer to test the exit status of vips_colourspace(). It will return 0 for success, -1 for failure.

Yes, I wonder how helpful it will be in practice. Uploads have to give content-length, so you need to finish the result before you can start writing. If the upload...