$ luarocks install lua-resty-gd lua-resty-gd is a Lua FFI binding to libgd, the GD Graphics Library.
It provides image creation, manipulation, and output functions for
PNG, JPEG, GIF, WebP, TIFF, BMP, GD, GD2, WBMP, HEIF, AVIF, and TGA
formats. Compatible with the lua-gd API and runs on OpenResty/LuaJIT.
Requires libgd 2.3.x installed on the system.
Versions
Dependencies
lua >= 5.1