John Cupitt
John Cupitt
Sure, should work. Though your PNG doesn't have an alpha channel, of course, you'd need to add one.
Most people generate thumbnails on the fly rather than pre-rendering at fixed sizes. You save a lot of money on storage costs and you can generate an image sized exactly...
Sorry, I'm vague about the details. I try to avoid front-end when I can. Maybe client hints? Googling "responsive images" seems to generate lots of hits.
Yes, `pecl` will compile the extension for your PHP binary, and it needs the libvips headers for that.
I'd stick to jpeg for the original. webp is quite a bit slower as an image source. For a 10k x 10k pixel image: ``` $ time vipsthumbnail wtc.jpg -s...
It doesn't make any difference. You always have to pay decode cost an recode cost, and they are independent. The process is always: ``` decode -> big array of RGB...
Hello, the new streaming stuff hasn’t been added to the PHP binding yet. It’s not hard, just that no ones got around to it. PRs very welcome, of course.
Let's reopen as a reminder to fix this.
Hello, you need to add the relevant chunks of the libvips API to php-vips-ext, then expose that in a nice way in php-vips. The ruby version should give a hint...
That's right. You can use the ruby one as a guide, or there's python too: https://github.com/libvips/pyvips They both use ffi to wrap libvips. There are some general notes in the...