👨💻 about me home CV/Resume News 🖊️ Contact Codeberg Github LinkedIn 🏆 Best of LuaX (tools) pub bang ypp panda lsvg ldc req yreq Fizzbuzz Calculadoira TPG picfg Belenos (intro) dnsfilter badges 🔀 Git Repos
Made in Europe
lsvg is a Lua interpreter specialized to generate SVG
images.
It is based on LuaX and uses a pure Lua library to generate SVG images. It optionally requires ImageMagick to make PNG, JPEG or PDF images.
lsvg was initially inspired by svg-lua.
It is strongly recommended to build Lsvg from source, as this is the only reliable way to install the exact version you need.
However, if you do require precompiled binaries, this page offers a selection for various platforms: https://cdelord.fr/pub.
lsvg is now part of LuaX.
$ lsvg -h
Usage: lsvg [-h] [-v] [-o output] <input> [<input>] ...
SVG generator scriptable in LuaX
Arguments after "--" are given to the input scripts
Arguments:
input Lua script using the svg module to build an SVG image
Options:
-h, --help Show this help message and exit.
-v Print version
-o output Output file name (SVG, PNG, JPEG or PDF)
--MF name Set the dependency file name (implies `--MD`)
--MD Generate a dependency file
For more information, see https://codeberg.org/cdsoft/luax
$ lsvg demo.lua -o demo.svg -- lsvg demo
This command stores {"lsvg", "demo"} in
arg, executes demo.lua and produces demo.svg:
No documentation yet. Just read the source code…
lsvg is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
lsvg is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with lsvg. If not, see <https://www.gnu.org/licenses/>.
For further information about lsvg you can visit
https://codeberg.org/cdsoft/luax
This site is powered by LuaX, bang, ypp, cdsoft.css and Pandoc.
Mirrors: cdelord.fr – christophe.delord.free.fr – cdsoft.codeberg.page