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)
```
+1 -1
View File
@@ -1,7 +1,7 @@
[Desktop Entry]
Type=Service
ServiceTypes=Krita/PythonPlugin
X-KDE-Library=kra2svg_inkscape
X-KDE-Library=kra2svg
X-Python-2-Compatible=false
X-Krita-Manual=Manual.html
Name=KRA → SVG (Inkscape) Export
@@ -10,7 +10,7 @@ class Kra2SvgExtension(Extension):
pass
def createActions(self, window):
action = window.createAction("kra2svg_inkscape_export",
action = window.createAction("kra2svg_export",
"SVG für Inkscape exportieren…", "tools/scripts")
action.triggered.connect(self.show_dialog)
@@ -14,7 +14,7 @@ from PyQt5.QtWidgets import (QApplication, QButtonGroup, QCheckBox, QDialog,
from .exporter import ExportOptions, export_document, export_files
SETTINGS_GROUP = "kra2svg_inkscape"
SETTINGS_GROUP = "kra2svg"
class ExportDialog(QDialog):
@@ -4,7 +4,7 @@ Kernlogik: Krita-Dokument -> SVG für Inkscape.
Unabhängig von der GUI nutzbar, z. B. aus dem Krita-Scripter:
from kra2svg_inkscape.exporter import export_document, export_files, ExportOptions
from kra2svg.exporter import export_document, export_files, ExportOptions
export_document(Krita.instance().activeDocument(), "/tmp/bild.svg", ExportOptions(margin=2))
export_files(["/pfad/a.kra", "/pfad/b.kra"], "/pfad/ausgabe", ExportOptions(embed_png=False))