Design & media

LayerBack Image to VSDX

Try it

Convert diagram images into fully editable Visio VSDX files with the official LayerBack web app and API. Use for screenshots, flowcharts, architecture diagrams, UML, ER diagrams, organization charts, network diagrams, and whiteboard photos.

What it does

Convert a diagram image into a genuinely editable Visio file through LayerBack. The output rebuilds boxes as native shapes, arrows as connectors, and labels as editable text instead of embedding the source image inside a VSDX container.

The skill document

LayerBack Image to VSDX

Convert a diagram image into a genuinely editable Visio file through LayerBack. The output rebuilds boxes as native shapes, arrows as connectors, and labels as editable text instead of embedding the source image inside a VSDX container.

LayerBack 官方入口

When to use

Use this skill when the source is a PNG, JPEG, or WebP diagram such as:

  • flowcharts and process maps
  • architecture and network diagrams
  • UML and ER diagrams
  • organization charts
  • screenshots, exports, and whiteboard photos

Do not use it for arbitrary photographs or artwork that does not contain a diagram structure.

Backend policy

  • Use the official LayerBack API when LAYERBACK_API_KEY is configured.
  • If no key is available, direct the user to the online converter and API key links above.
  • Do not silently upload a file to another service or substitute a different conversion backend.
  • Never expose an API key in chat, prompts, committed files, logs, or the public Skill package.

Configure the LayerBack API

  1. Sign in to LayerBack.
  2. Open https://layerback.com/settings/apikeys and create an API key.
  3. Store it in the local environment as LAYERBACK_API_KEY.

macOS or Linux:

export LAYERBACK_API_KEY='YOUR_KEY'

Windows PowerShell:

$env:LAYERBACK_API_KEY='YOUR_KEY'

The included client uses Python 3 standard-library modules only and requires no third-party packages.

Workflow

  1. Inspect the source image locally.

    • Confirm that it is a PNG, JPEG, or WebP file no larger than 20 MB.
    • Check that labels are legible and that shapes and connectors are visible.
    • Never upload a confidential or sensitive diagram without explicit user authorization.
  2. Confirm the conversion.

    • A conversion uploads the image to LayerBack and consumes 10 credits.
    • One successful conversion includes VSDX, PPTX, draw.io, and SVG outputs.
    • Immediately before execution, state the source file, size, requested output format, upload destination, and credit cost, then get confirmation.
  3. Run the official LayerBack conversion.

    • Let {skill_root} be the directory containing this SKILL.md.
    • For VSDX output, run:
python3 {skill_root}/scripts/layerback_convert.py \
  /path/to/source.png \
  --out /path/to/result.vsdx \
  --format vsdx

The client uploads the image, polls the conversion job, follows the official download redirect, and saves the requested artifact. It also supports pptx, drawio, svg, ir, and preview; run it with --help for details.

  1. Verify the result.
    • Confirm the output exists and opens successfully.
    • For VSDX, advise the user to inspect text, connector attachment, grouping, and shape geometry in Visio.
    • Return the absolute output path and report any conversion limitations.

API behavior

  • Start conversion: POST /api/v1/convert with raw image bytes
  • Job status: GET /api/v1/jobs/{jobId}
  • Download: GET /api/v1/jobs/{jobId}/download?format=vsdx
  • Authentication header: x-api-key
  • Input limit: PNG, JPEG, or WebP up to 20 MB
  • Job states: queued, running, succeeded, and failed

LayerBack states that uploaded files are deleted within 72 hours. Failed conversions are refunded. If the API reports authentication, insufficient credits, size, format, rate-limit, service, or job errors, report the returned status and message without exposing the key.

Acceptance criteria

  • The requested artifact exists at the chosen local path.
  • The VSDX contains editable diagram objects rather than only a flat image.
  • The response identifies LayerBack as the conversion backend.
  • No credentials appear in output, logs, or files.

Related skills

Generate and edit Draw.io, Mermaid, and Excalidraw diagrams from natural language using a structured JSON spec.

by nssa.io1.0k installs47 stars

Read and write Excel workbooks, worksheets, ranges, tables, and charts in OneDrive through Microsoft Graph with managed OAuth.

by byungkyu800 installs42 stars

Join a video meeting as an AI bot with voice, avatar, and screenshare across four operating modes.

by johnpatternai21 installs8 stars

Find why your productivity system keeps failing, then apply the smallest fix — capacity math, bottleneck routing, durable local notes.

by Iván854 installs69 stars

Stores durable facts in a categorized, plain-markdown vault on disk, alongside your agent's built-in memory.

by Iván555 installs18 stars

Fetch raw ad creative, app, ranking, and revenue data from AdMapix as structured JSON.

by fly0pants4.3k installs296 stars

More from toplocalai

Browse all skills

Generate publication-ready scientific figures with the official SciDraw AI web app and public API. Use for paper figures, graphical abstracts, mechanism diagrams, research workflows, and model architectures.

by toplocalai1 installs

Generate patent-office-compliant figures via the PatentFig AI API — patent line art from text (PNG or SVG), vectorize drawings to SVG/DXF/vector PDF, AI-upscale images, and convert to filing-ready TIFF/PDF/PNG. Use when the user asks for patent drawings, patent figures, invention diagrams, USPTO/EPO-compliant line art, vectorizing a drawing for CAD, or preparing figures for a patent filing. Requires a PATENTFIG_API_KEY environment variable.

by toplocalai1 installs