Giter Club home page Giter Club logo

svgbuild-py3's Introduction

SVGBuild-py3

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.

Dependency

Usage

main.py [options] filename.svg

Options available via

main.py -h

Usage With Docker

docker build . -t svgbuild
docker run -itd --name svgbuild -v $(pwd)/svgs:/svgbuild-py3/svgs svgbuild
docker exec -it svgbuild sh

Examples

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

Freedom Machine 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

Freedom Machine 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

Hayley Williams Vector Popart Portrait original file was downloaded from Hayley-williams-vector-popart-portrait.svg

FFMPEG

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 Results

More samples and results with different options available here https://fpermana.id/svg-build.

Desktop GUI (Deprecated)

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.

License

The original script is licensed under Artistic License. This repository is under a GNU GPLv3 License.

svgbuild-py3's People

Contributors

fpermana avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.