Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ker0olos/resvg-python
A python-bind of resvg (cairosvg alternative)
https://github.com/ker0olos/resvg-python
Last synced: 13 days ago
JSON representation
A python-bind of resvg (cairosvg alternative)
- Host: GitHub
- URL: https://github.com/ker0olos/resvg-python
- Owner: ker0olos
- Created: 2024-06-09T00:49:05.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-09-16T05:18:48.000Z (2 months ago)
- Last Synced: 2024-10-11T04:46:41.512Z (about 1 month ago)
- Language: Rust
- Homepage:
- Size: 11.6 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Build
```bash
python3 -m venv .venv
source ./.venv/bin/activate
pip install maturin
maturin build
```### Install
```bash
pip install resvg_python
``````python
import resvg_pythonwith open("example.svg", "r") as svg_string:
png_image_bytes = resvg_python.svg_to_png(svg_string)
```