Generate drawing reveal videos from SVG files.
Project description
svgsequencevideo is a Python library and CLI for generating drawing reveal videos from SVG files: every shape appears one after another, in the order it is drawn in the SVG, as if the artwork were being drawn live.
See documentation with tutorials and examples: https://svgsequencevideo.readthedocs.io.
Quick overview
(venv) $ pip install svgsequencevideo
Generating a video is split into two independent steps: a slow render of the SVG into PNG frames, done once, and a fast video build from those frames, run as many times as needed while tuning the reveal timing.
(venv) $ svgsequencevideo render drawing.svg --width 1920
(venv) $ svgsequencevideo video --revealduration 15 --heuristic complex
Limitation
When used in the heuristic to compute the reveal time of each element, the computation of the area of an element does not take into account clipping.
Development
Install the dependencies
(venv) $ pip install -e ".[dev]"
Create wheel
(venv) $ python -m build
Generate full coverage report
(venv) $ coverage run
(venv) $ coverage html
Then open htmlcov/index.html
Documentation
Generate doc
(venv) $ make html
Then open docsBuild/index.html
Coding style
Some visual studio code settings of visualStudioCodeSettings.json should be used to ensure some homogeneity in the coding style.
In Visual Studio Code, install extensions
isort to sort Python automatically
Pylance for type checking
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file svgsequencevideo-0.1.0.tar.gz.
File metadata
- Download URL: svgsequencevideo-0.1.0.tar.gz
- Upload date:
- Size: 25.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2bdd34063cd36852380504e66ece410db75f24bfbd5afc935e5e3eda49702482
|
|
| MD5 |
a1861d9adc66287667d273a16ca6ad5d
|
|
| BLAKE2b-256 |
9ff8dc031093b2d808d09ffd6f242bf765f1e03f56345d04c2da5f650d95c47f
|
File details
Details for the file svgsequencevideo-0.1.0-py3-none-any.whl.
File metadata
- Download URL: svgsequencevideo-0.1.0-py3-none-any.whl
- Upload date:
- Size: 18.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c14cb5cfe0acfd4b8cd7ecedf94a6306be773151329c37dd31e2e8d247f0d62
|
|
| MD5 |
156dbad1f5f750d8d31c40d834323c80
|
|
| BLAKE2b-256 |
1b201eb10c5ef6327a169a8bc5bf0c26a31dceb1b26b958731e8001b9ada2aee
|