Results 1568 comments of John Cupitt

I would read the stream into a huge Lua string, then call `new_from_buffer`. It'll guess the file type for you.

It varies with the image format, but the first 1000 bytes should be enough, and not take too long.

Sure, it sounds fun. Open a pull request with your example and I'll add it.

Unfortunately not. This has been discussed quite a bit, but for now you need to read the entire image to a string, then start vips on it. There is a...

The most recent discussion around this is here, fwiw: https://github.com/lovell/sharp/issues/179

You can still overlap read and process, you just need to buffer a couple of images in memory. You can have one thread reading into buffer1, and another thread processing...

Yes, a nginx module sounds fun. I don't have time though :(

Well, you could have a go, if you like. It sounds like it could be an easy way to get at least a little famous :)

Hi @sjkim04, I suppose I would first try to verify that your libvips is working. You can do: ``` $ vips --vips-config | grep -i png PNG load/save with libspng:...

I'll see if I can make a dockerfile that reproduces this.