Plugin renamed to kra2svg

This commit is contained in:
2026-09-22 13:14:33 +02:00
parent 3b3c32b94e
commit 05eea5d4d3
6 changed files with 9 additions and 10 deletions
+5 -6
View File
@@ -1,15 +1,14 @@
# 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…*
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_inkscape.exporter import export_document, export_files, ExportOptions
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)
```