https://github.com/modlfo/fixaffinitysvg
Fixes the SVG files exported by Affinity Designer to work with VCV Rack
https://github.com/modlfo/fixaffinitysvg
Last synced: 14 days ago
JSON representation
Fixes the SVG files exported by Affinity Designer to work with VCV Rack
- Host: GitHub
- URL: https://github.com/modlfo/fixaffinitysvg
- Owner: modlfo
- Created: 2018-09-03T19:33:20.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-03T19:41:52.000Z (almost 8 years ago)
- Last Synced: 2025-01-29T00:37:34.617Z (over 1 year ago)
- Language: OCaml
- Size: 1000 Bytes
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fix Affinity SVG
Affinity Designer exports SVG files that do not load correctly in VCV Rack. The main problem is that the are placed at the end of the file when the renderer of Rack requires them in the beginning.
# Compile
Your require OCaml with at the library `xml-light` and `ocamlbuild`. You can install them using `opam`.
```
$ ocamlbuild -use-ocamlfind fixsvg.byte
```
# Run
To fix a single file:
```
$ fixsvg.byte file.svg
```
To fix all files in a directory
```
$ fixsvg.byte -dir /path/to/files
```