SVGBuild is an open source Python script originally created by Ed Halley. Source code is available for download from here http://halley.cc/code/?python/svgbuild.py. Python2, Inkscape, and ImageMagick are needed to run that script. FFmpeg, avconv or similar tools could be used to create videos as final result.
This repository is modified version of the original one. I made some improvements such as removing external ImageMagick dependency, add several new options, optimize performance, etc.
Web app version also available here https://fpermana.id/svg-build.
main.py [options] filename.svg
Options available via
main.py -h
docker build . -t svgbuild
docker run -itd --name svgbuild -v $(pwd)/svgs:/svgbuild-py3/svgs svgbuild
docker exec -it svgbuild sh
Below are several results with different options
main.py --build-path --detail-path --path-node-count=2 --use-object-color --zoom=4 inkscape-island-of-creativity.svg
original file was downloaded from inkscape-island-of-creativity.svg
main.py --build-path --detail-path --circle-path --use-object-color --line-color="#FF0000" --page-view Inkscape_0.92_About_Screen_by_Rizky_Djati_Munggaran_aka_ridjam.svg
original file was downloaded from Inkscape_0.92_About_Screen_by_Rizky_Djati_Munggaran_aka_ridjam.svg
main.py --build-path --detail-path --path-node-count 1 --page-view --show-camera-frame Hayley-williams-vector-popart-portrait.svg
original file was downloaded from Hayley-williams-vector-popart-portrait.svg
ffmpeg -nostdin -y -f image2 -i inkscape-island-of-creativity/inkscape-island-of-creativity%05d.png -vcodec libx264 -pix_fmt yuv420p inkscape-island-of-creativity.mp4
.
ffmpeg -nostdin -y -f image2 -i Inkscape_0.92_About_Screen_by_Rizky_Djati_Munggaran_aka_ridjam_page/Inkscape_0.92_About_Screen_by_Rizky_Djati_Munggaran_aka_ridjam%05d.png -vcodec libx264 -pix_fmt yuv420p -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2" Inkscape_0.92_About_Screen_by_Rizky_Djati_Munggaran_aka_ridjam.mp4
More samples and results with different options available here https://fpermana.id/svg-build.
SVGBuild also available as desktop app that run on Linux and Windows here https://github.com/fpermana/SVGBuild-GUI. It requires PyQt4 to run the script.
The original script is licensed under Artistic License. This repository is under a GNU GPLv3 License.