Files
2026-09-22 13:14:33 +02:00

15 lines
808 B
Markdown
Raw Permalink 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. Krita: *Werkzeuge → Skripte → Python-Plugin aus Datei importieren…* → `kra2svg.zip`
(alternativ `kra2svg.desktop` + Ordner `kra2svg/` nach `pykrita/` im Ressourcenordner kopieren).
2. *Einstellungen → Krita einrichten → Python-Plugin-Verwaltung* → „KRA → SVG (Inkscape) Export“ aktivieren.
3. Krita neu starten. Aufruf: *Werkzeuge → Skripte → SVG für Inkscape exportieren…*
## Skriptnutzung (Scripter / Kommandozeile)
```python
from kra2svg.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)
```