mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
git-subtree-dir: src/deps/src/lua-gd git-subtree-split: 2ce8e478a8591afd71e607506bc8c64b161bbd30
24 lines
551 B
Lua
24 lines
551 B
Lua
#!/usr/bin/env lua
|
|
|
|
local gd = require("gd")
|
|
|
|
function enabled(res, desc)
|
|
local str = " " .. desc .. " "
|
|
str = str .. string.rep(".", 37 - string.len(str))
|
|
if res then
|
|
print(str .. " Enabled")
|
|
else
|
|
print(str .. " Disabled")
|
|
end
|
|
end
|
|
|
|
print("Lua-GD version: " .. gd.VERSION)
|
|
print("Lua-GD features:")
|
|
|
|
enabled(gd.png, "PNG support")
|
|
enabled(gd.gif, "GIF support")
|
|
enabled(gd.jpeg, "JPEG support")
|
|
enabled(gd.createFromXpm, "XPM/XBM support")
|
|
enabled(gd.stringFT, "FreeType support")
|
|
enabled(gd.useFontConfig, "Fontconfig support")
|
|
|