erste lauffähige Version, exportiert .kra erfolgreich als .svg

vollständig von Claude geschrieben
This commit is contained in:
2026-09-21 22:16:52 +02:00
commit 76826a0892
7 changed files with 1000 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
# 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)
```