Canvas Export logo

Canvas Export

Community
AgriciDaniel
canvas-export

Export Obsidian Canvas files to PNG, SVG, or PDF formats. Uses the Advanced Canvas plugin's built-in export when Obsidian is running, or falls back to Playwright browser-based screenshot capture. Supports single canvas export, presentation slide-per-page PDF export, and batch export. Triggers on: canvas export, export canvas, canvas to png, canvas to pdf, canvas to svg, save canvas as image, screenshot canvas, export presentation.

Overview

PublisherAgriciDaniel
Repositoryclaude-canvas
Skill namecanvas-export
Stars
301
Forks
27
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by AgriciDaniel on GitHub. Read the source before you install it.

Installation

Install the Canvas Export AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/AgriciDaniel/claude-canvas/tree/main/skills/canvas-export
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/AgriciDaniel/claude-canvas.git /tmp/claude-canvas
mkdir -p .claude/skills
cp -r /tmp/claude-canvas/skills/canvas-export .claude/skills/canvas-export
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Canvas Export in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Canvas Export on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Canvas Export is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

canvas-export: Export Canvas to Image/PDF


Export Methods

Method 1: Advanced Canvas Plugin Export (Preferred)

The Advanced Canvas plugin provides built-in PNG and SVG export with transparency support.

Requirements: Obsidian running with Advanced Canvas installed.

Workflow:

  1. Instruct the user: "In Obsidian, right-click the canvas background → Advanced Canvas → Export as PNG/SVG"
  2. Or use Obsidian's command palette: Advanced Canvas: Export as PNG
  3. The exported file appears in the canvas directory.

This is the highest-quality export method — it uses Obsidian's own rendering engine.

Method 2: Playwright Screenshot (Fallback)

When Obsidian is not running or Advanced Canvas is not installed, use Playwright to capture the canvas.

Requirements: Playwright installed (pip install playwright && playwright install chromium)

Workflow:

  1. Check if Playwright is available:
    bash
    python3 -c "from playwright.sync_api import sync_playwright; print('ok')" 2>/dev/null && echo "available" || echo "not available"
  2. If available, generate a standalone HTML viewer of the canvas and screenshot it:
    bash
    # Generate HTML from canvas JSON
    python3 -c "
    import json, sys
    canvas = json.load(open(sys.argv[1]))
    # ... render to HTML with absolute positioning ...
    " [canvas_path] > /tmp/canvas-preview.html
    
    # Screenshot with Playwright
    python3 -c "
    from playwright.sync_api import sync_playwright
    with sync_playwright() as p:
        browser = p.chromium.launch()
        page = browser.new_page(viewport={'width': 1920, 'height': 1080})
        page.goto('file:///tmp/canvas-preview.html')
        page.screenshot(path='[output_path]', full_page=True)
        browser.close()
    "
  3. Report the output path and dimensions.

Method 3: User-Assisted Screenshot

When neither method is available:

  1. Tell the user: "Open the canvas in Obsidian, zoom to fit all content, then take a screenshot."
  2. On Linux (COSMIC): suggest Print key for screenshot tool.
  3. On macOS: suggest Cmd+Shift+4.

Operations

Export to PNG (/canvas export png [output_path])

  1. Identify the target canvas (default: active canvas or main.canvas).
  2. Determine output path:
    • If provided: use it.
    • If not: [canvas_dir]/exports/[canvas-name].png
  3. Try Method 1 (Advanced Canvas) first.
  4. If not available: try Method 2 (Playwright).
  5. If neither: use Method 3 (user-assisted).
  6. Report: "Exported [canvas] to [path] ([width]x[height] pixels)"

Export to SVG (/canvas export svg [output_path])

  1. Same flow as PNG, but use SVG format.
  2. Advanced Canvas supports SVG export with transparency.
  3. Playwright fallback: render HTML, use page.screenshot(type='svg') — note: Playwright doesn't natively export SVG. Fall back to PNG.
  4. Report format and path.

Export to PDF (/canvas export pdf [output_path])

For standard canvases:

  1. Export to PNG first, then convert: convert [png] [pdf] (ImageMagick).

For presentation canvases:

  1. Detect if canvas has edge-connected slide groups (presentation pattern).
  2. Export each slide group as a separate PNG.
  3. Combine into a multi-page PDF:
    bash
    convert slide-1.png slide-2.png slide-3.png output.pdf
  4. Report: "Exported [N]-slide presentation to [path]"

Output Directory Convention

Exports go to [canvas_dir]/exports/ by default:

  • Vault mode: wiki/canvases/exports/
  • Standalone mode: .canvases/exports/

Create the directory if it doesn't exist.


Limitations

  • Playwright rendering is approximate — it doesn't replicate Obsidian's exact canvas renderer
  • SVG export via Playwright is not supported — falls back to PNG
  • PDF export requires ImageMagick (convert command)
  • Mermaid diagrams in text nodes may not render in Playwright screenshots (requires Mermaid JS library)
  • GIF animations are captured as static frames in screenshots
  • Export quality depends on the method used (Advanced Canvas > Playwright > Screenshot)

Frequently asked questions

What does the Canvas Export AI skill do?

Export Obsidian Canvas files to PNG, SVG, or PDF formats. Uses the Advanced Canvas plugin's built-in export when Obsidian is running, or falls back to Playwright browser-based screenshot capture. Supports single canvas export, presentation slide-per-page PDF export, and batch export. Triggers on: canvas export, export canvas, canvas to png, canvas to pdf, canvas to svg, save canvas as image, screenshot canvas, export presentation.

Why use Canvas Export on TypingMind?

Because you install it once and use it with any model. Canvas Export is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Canvas Export in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/AgriciDaniel/claude-canvas/tree/main/skills/canvas-export. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Canvas Export?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Canvas Export?

As many as you like. As long as a model supports skills, you can use Canvas Export with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Canvas Export AI skill free?

Yes. It is published on GitHub by AgriciDaniel under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇