John Cupitt
John Cupitt
Ah, very interesting. Thank you @maxim-avramenko !
I've not done much with openresty myself, I've been using lua vips with plain lua. @kleisauke, I think you are deploying lua-vips and openresty, do you have a sample config...
Hello @piface314, Your example works for me: ``` john@kiwi:~$ luajit LuaJIT 2.1.0-beta3 -- Copyright (C) 2005-2017 Mike Pall. http://luajit.org/ JIT: ON SSE2 SSE3 SSE4.1 BMI2 fold cse dce fwd dse...
You need the -dev package to get the headers for compilation. Ubuntu 20.04 comes with an OK libvips, I would just use that unless you have a very strong reason...
You can do `make uninstall`, as long as you've not touched the libvips area since you did `make install`. Otherwise, I'd do: ``` find /usr/local/ -name "*vips*" ``` And remove...
Hi @LeslieGerman, no, sorry, that function is not wrapped by lua-vips. You would need to write a little FFI code and call it yourself. What are you trying to achieve?...
Ah OK. No, sorry, I don't think that can be done. You have to read the whole of the compressed image into memory. The true-streams idea should probably be resurrected...
libvips is a "pull" system, so you can't push bytes into it as they arrive, instead you'd need to attach a callback to libvips to grab another chunk of input...
For `addalpha`, I'd put something like this just after `bandsplit` (ie. in the convenience method area): ```lua function Image_method:addalpha() local max_alpha if self:interpretation() == "rgb16" or self:interpretation() == "grey16" then...
I think I would be pro chaining, as long as it's stateless. libvips is supposed to have a functional, or stateless API: you never modify objects, you only ever create...