Logo von Image To Svg

Image To Svg

Community
zyipeng
image-to-svg

Wandeln Sie vom Nutzer bereitgestellte Rasterbilder in saubere, bearbeitbare SVGs mit transparentem Hintergrund um – für Icons, Logos, UI-Glyphen, Wortmarken, Textgrafiken und andere flache Grafik-Assets. Verwenden Sie diesen Skill für PNG-, JPG- und WebP-Dateien oder Screenshots, auch wenn bei Bildern ohne Transparenz der Hintergrund vor der Vektorrekonstruktion entfernt werden muss. Geeignet sind außerdem kombinierte Logo- und Textanordnungen, pixelgetreue Icon-Nachbildungen und Anfragen, ein Icon oder Logo aus einem Bild in SVG umzuwandeln. Nicht für die Vektorisierung gewöhnlicher Fotos oder reine Bitmap-Ausgaben verwenden.

Übersicht

Herausgeberzyipeng
Repositoryimage-to-svg
Skill-Nameimage-to-svg
Sterne
31
Forks
6
Mitgelieferte Dateien
20
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • Mitgelieferte Dateien: 20

    Skripte, Vorlagen und Referenzmaterial, die das Modell bei der Arbeit lesen kann. Die Dateien sind schreibgeschützt und werden niemals ausgeführt.

  • Open Source

    Von zyipeng auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill Image To Svg in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner. Dabei liest die App SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/zyipeng/image-to-svg/tree/main
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill hinzufügen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format unterstützt, kann diesen Skill nutzen. Kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/zyipeng/image-to-svg.git \
  .claude/skills/image-to-svg
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Image To Svg in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Image To Svg automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Image To Svg nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Schlüsseln.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

Image to SVG

Rebuild the foreground geometry represented by the supplied pixels. Treat the raster as the only source of truth and produce a real vector, not a bitmap wrapper.

Resolve <skill-dir> to the directory containing this SKILL.md. Resolve every bundled script and reference relative to that directory. Do not assume a vendor-specific home directory or the current working directory.

Non-negotiable boundary

  • Use only the user-provided raster and facts explicitly supplied by the user.
  • Do not browse the web, search icon libraries, inspect application bundles, reverse-search the image, or recover an original/candidate SVG.
  • Do not embed the source with <image>, a data URL, foreignObject, a raster pattern, or CSS background imagery.
  • Do not present an automatic threshold contour as final smooth artwork unless the source is intentionally pixel art.
  • Do not claim that one raster uniquely determines the original authoring geometry. Aim for a pixel-faithful reference-size render plus clean scaling, and disclose underdetermined details.

Background separation is mandatory

The final SVG must have a transparent canvas and contain only the requested graphic foreground.

  • If the source has meaningful transparency, preserve its visible foreground and ignore fully transparent pixels.
  • If the source is opaque, identify and exclude the background before reconstructing geometry. This is an internal preprocessing step, not a separate output mode.
  • For solid or near-solid backgrounds, infer the background from palette prevalence, borders, corners, and spatial continuity. Do not assume every border pixel is background.
  • For gradients, shadows, compression noise, or textured backgrounds, separate the intended foreground semantically and inspect edges at high zoom. Do not vectorize the surrounding scene unless the user asks for it.
  • When foreground/background separation is ambiguous or part of the graphic may be occluded, state the ambiguity instead of silently inventing hidden geometry.
  • Do not deliver a transparent PNG or mask unless the user explicitly asks for one.

Runtime levels

The core workflow has no mandatory third-party installation. Viewing the image, reasoning about foreground geometry, writing SVG, and running scripts/svg_audit.py are sufficient to produce a useful result.

Optionally check enhanced QA availability:

bash
python3 <skill-dir>/scripts/doctor.py

The doctor searches the current shell, environment overrides, system runtimes, and known agent-managed runtime caches. Set IMAGE_TO_SVG_RUNTIME_ROOTS to a path-separated list when an agent stores reusable runtimes elsewhere. Use the executables reported under selected_runtimes; do not assume that the default python3 or node owns already-installed packages.

Pillow and NumPy enable automated raster measurement and image-difference metrics. Node.js, Playwright, and Chrome/Chromium enable deterministic browser rendering. Treat all of them as optional enhancements:

  • Prefer already-installed system or agent-managed dependencies; using them is not an installation.
  • Do not install dependencies unless the user explicitly asks.
  • Do not stop SVG reconstruction when optional dependencies are missing.
  • Use available visual inspection, local SVG viewing, and the dependency-free SVG audit instead.
  • Report which enhanced QA steps were skipped; do not label the SVG unusable merely because automated metrics were unavailable.

Deliverables

Always deliver the requested editable .svg with a transparent canvas.

  • Preserve a logo, icon-plus-wordmark, or other intentional lockup as one combined SVG by default.
  • Split elements into separate SVG files only when the user asks or when the source clearly contains unrelated assets.
  • Preserve source spacing and relative alignment for combined assets.
  • When enhanced QA is available, also deliver final-render.png, comparison.png, and metrics.json as evidence.
  • Do not create extra extraction artifacts unless they materially help iteration or the user requests them.

Workflow

1. Inspect, separate, and measure

View the original image. Record canvas dimensions, alpha behavior, likely background, foreground bounds, colors, repeated widths, symmetry axes, negative spaces, element grouping, and whether the artwork appears stroke-authored or fill-authored.

For every opaque source, explicitly decide which pixels belong to the background and exclude that background from the SVG. Tighten the output viewBox around the requested foreground unless preserving source whitespace or layout is part of the request.

If Pillow and NumPy are already available, run the analyzer on the image or an explicit crop:

bash
python3 <skill-dir>/scripts/analyze_raster.py input.png --out-dir outputs/analysis
python3 <skill-dir>/scripts/analyze_raster.py input.png --crop X Y W H --out-dir outputs/asset/analysis

Inspect analysis.json, coverage.png, and zoom.png. If qa_blocked is true, inspect the raster and rerun with explicit evidence:

bash
python3 <skill-dir>/scripts/analyze_raster.py input.png \
  --background '#f7f7f7' --foreground '#4c4c4c' --polarity dark-on-light \
  --out-dir outputs/analysis

Use --background transparent for a genuinely transparent canvas. Connected components are measurements only; separate letters, dots, and antialiased fragments do not necessarily imply separate final paths.

When the analyzer is unavailable, perform the same foreground/background decision visually and continue.

2. Form geometry hypotheses

Read references/geometry-recipes.md. Start at the lowest adequate complexity:

  1. circles, ellipses, lines, polylines, rectangles, rounded rectangles, and arcs;
  2. small composites of primitives and negative-space cutouts;
  3. a few analytic cubic curves with deliberate tangent continuity;
  4. a smoothed outline fitted from measured edges;
  5. a trace-derived outline only for genuinely irregular silhouettes, followed by simplification and smoothing.

For apparent line icons, test a centerline stroke hypothesis before fitting both outline edges. Infer centerlines from paired edges and estimate width from their separation. Test caps, joins, miter behavior, and open-versus-closed endpoints. Use filled outlines only when constant-width strokes cannot explain the pixels.

Use symmetry and repetition as constraints. Share radii, stroke widths, corner radii, centers, and mirrored control points when supported by the raster.

For wordmarks and combined brand marks, preserve each visible glyph as vector geometry and preserve the measured relationship between symbol and text. Do not substitute editable font text unless the user prefers it or the typeface is known from supplied evidence.

3. Author and audit a true SVG

Write a correct tight or intentionally spaced viewBox, semantic element ids, explicit colors, and the fewest elements/control points that explain the image. Leave the canvas transparent and keep coordinates readable enough for later editing.

Run the dependency-free audit after every structural rewrite:

bash
python3 <skill-dir>/scripts/svg_audit.py asset.svg --report outputs/audit.json

Any raster embedding or external reference is a hard failure. Internal url(#id) references for gradients, masks, clip paths, and filters are valid. Treat excessive path commands and noisy knots as smoothness warnings.

4. Render with available tools

If the bundled browser runtime is already available, render at exact physical dimensions:

bash
node <skill-dir>/scripts/render_svg.cjs asset.svg outputs/final-render.png \
  --physical-width 74 --physical-height 90 --dpr 1 --background '#f7f7f7'

For a DPR-2 hypothesis, keep the same physical dimensions and change only --dpr 2.

If Playwright is unavailable, use any existing safe local SVG viewer or image preview to inspect the delivered SVG at reference size and 200–400% zoom. Do not install a renderer automatically.

5. Compare and refine

If Pillow and NumPy are already available, compare source and render at identical physical dimensions:

bash
python3 <skill-dir>/scripts/compare_fit.py source-crop.png outputs/final-render.png \
  --background '#f7f7f7' --foreground '#4c4c4c' --out-dir outputs/qa

Read references/qa-metrics.md, inspect comparison.png, and refine in this order:

  1. foreground/background separation, canvas, placement, scale, and optical centering;
  2. topology, open/closed structure, and negative space;
  3. endpoints, extrema, radii, corner positions, and symmetry;
  4. stroke width, caps, joins, and local width profile;
  5. curve tangents and antialias-sensitive subpixel placement;
  6. foreground color.

When automated comparison is unavailable, apply the same ordering through direct visual comparison. Change a small set of parameters per iteration and stop at the first clean, structurally correct fit or after 10 geometry iterations.

6. Accept with available evidence

Always require:

  • the SVG passes the no-raster/external-reference audit;
  • the background is excluded and the SVG canvas is transparent;
  • intended curves remain smooth at 200–400% zoom;
  • no obvious structural, spacing, endpoint, or negative-space mismatch remains;
  • the grouping matches user intent, including combined logo-and-text layouts.

When enhanced QA is available, also require non-ambiguous coverage polarity, exact render dimensions, and locally competitive comparison metrics among clean candidates. When it is unavailable, report the skipped automated checks without blocking delivery.

Do not impose a universal IoU threshold. A smooth primitive can be more correct than a jagged trace with higher IoU; high IoU does not excuse wrong topology or background inclusion.

Thresholds for enhanced analysis

  • Analysis defaults to coverage 0.08 to retain faint antialias fringe for bounds and components.
  • Binary QA defaults to 0.10 for a more stable foreground mask.
  • Soft IoU and coverage MAE remain continuous and do not use either binary threshold.

Both defaults live in scripts/raster_utils.py and every enhanced report records the active value.

Maintenance

Run the dependency-free skill validation after changing metadata or instructions. Run enhanced regressions only when their dependencies are already available:

bash
python3 <skill-creator-dir>/scripts/quick_validate.py <skill-dir>
python3 <skill-dir>/scripts/self_test.py
python3 <skill-dir>/scripts/self_test.py --require-browser

References

  • references/geometry-recipes.md — stroke, primitive, curve, symmetry, grouping, and crop reconstruction guidance.
  • references/qa-metrics.md — optional metric interpretation, renderer calibration, and acceptance ordering.

Mitgelieferte Dateien

Das Modell liest diese Dateien bei Bedarf, während der Skill geladen ist. Sie werden als lesbare Dateien bereitgestellt und niemals ausgeführt.

Häufig gestellte Fragen

Was macht der KI-Skill Image To Svg?

Wandeln Sie vom Nutzer bereitgestellte Rasterbilder in saubere, bearbeitbare SVGs mit transparentem Hintergrund um – für Icons, Logos, UI-Glyphen, Wortmarken, Textgrafiken und andere flache Grafik-Assets. Verwenden Sie diesen Skill für PNG-, JPG- und WebP-Dateien oder Screenshots, auch wenn bei Bildern ohne Transparenz der Hintergrund vor der Vektorrekonstruktion entfernt werden muss. Geeignet sind außerdem kombinierte Logo- und Textanordnungen, pixelgetreue Icon-Nachbildungen und Anfragen, ein Icon oder Logo aus einem Bild in SVG umzuwandeln. Nicht für die Vektorisierung gewöhnlicher Fotos...

Warum Image To Svg in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Image To Svg besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Image To Svg in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/zyipeng/image-to-svg/tree/main ein. TypingMind liest die Datei SKILL.md, bündelt die zugehörigen Dateien und installiert alles als Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Image To Svg nutzen?

Jedes Modell, das Sie mit TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Image To Svg verwenden?

So viele Sie möchten. In TypingMind können Sie Image To Svg mit jedem Modell verwenden, das Skills unterstützt, etwa mit GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama. Dabei nutzen Sie Ihre eigenen API-Schlüssel.

Ist der KI-Skill Image To Svg kostenlos?

Der Skill wird von zyipeng auf GitHub veröffentlicht. Prüfen Sie im Repository, ob dort Lizenzbedingungen angegeben sind. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: Die Datei SKILL.md enthält den Namen und die Beschreibung des Skills. Hinzu kommen bei Bedarf Skripte, Vorlagen oder Referenzdateien für das Modell. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und kommen daher ohne Server, API-Schlüssel und Laufzeitumgebung aus. Sie funktionieren mit jedem Modell.

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇