Files
kra2svg/README.md
T
2026-09-21 22:16:52 +02:00

16 lines
883 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# KRA → SVG (Inkscape) Export – Krita 5.x Python-Plugin
## Installation
1. diesen ganzen Ordner als ZIP packen
2. Krita: *Werkzeuge → Skripte → Python-Plugin aus Datei importieren…* → `kra2svg_inkscape.zip`
(alternativ `kra2svg_inkscape.desktop` + Ordner `kra2svg_inkscape/` nach `pykrita/` im Ressourcenordner kopieren).
3. *Einstellungen → Krita einrichten → Python-Plugin-Verwaltung* → „KRA → SVG (Inkscape) Export“ aktivieren.
4. Krita neu starten. Aufruf: *Werkzeuge → Skripte → SVG für Inkscape exportieren…*
## Skriptnutzung (Scripter / Kommandozeile)
```python
from kra2svg_inkscape.exporter import export_document, export_files, ExportOptions
export_document(Krita.instance().activeDocument(), "/pfad/bild.svg", ExportOptions(margin=2))
export_files(["/pfad/a.kra", "/pfad/b.kra"], "/pfad/out", ExportOptions(embed_png=False), print)
```