Inkscape CLI
$ inkscape Foundation Low RiskInkscape (inkscape) is the leading open-source vector graphics editor, offering CLI flags (--export-type=pdf|png|svg, --export-filename, --actions) for batch conversion between SVG, PDF, EPS, and PNG. While powerful for print/vector fidelity, it is a heavy GTK desktop binary with slower startup and occasional headless display quirks on Linux.
brew install --cask inkscape inkscape operates directly on local vector assets; prefer resvg for lightweight SVG-to-PNG tasks and reserve inkscape for PDF/EPS or --actions vector edits.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports non-interactive --export-type, --query-all, and --actions, but mixes GTK/DBus stderr warnings and lacks JSON output.
- Omitting export/action flags opens the full GUI desktop app
- GTK/GLib warnings frequently appear on stderr in headless environments
Offline local tool, though --export-overwrite or --actions batch scripts can overwrite input SVGs if not pointed to --export-filename.
- Explicit
--export-filenamekeeps source SVG untouched
Large desktop GUI package (brew install --cask inkscape, Flatpak, AppImage) with GTK dependencies.
- Hundreds of megabytes installed size and desktop cask packaging
Unmatched for SVG-to-PDF/EPS/LaTeX export (--export-latex) and vector path operations (--actions).
- Supports PDF, EPS, EMF, DXF, and
--export-text-to-path
Long-standing Software Freedom Conservancy project (inkscape) under GPL-2.0-or-later.
- Active upstream release cycle
Official manpage and wiki docs, though CLI syntax changed significantly in Inkscape 1.0+.
- Official manpage at inkscape.org/doc/inkscape-man.html
Security, Auth & Guardrails
No credentials required; offline desktop/CLI executable.
Free open-source software (GPL-2.0-or-later).
# Inkscape CLI Agent Rules - Always pass `--export-type` and `--export-filename` (or `--batch-process` carefully) so Inkscape never opens a GUI window. - Use `resvg` instead of `inkscape` for fast SVG-to-PNG rasterization. - In headless Linux containers, verify DBus/X11 warnings do not break stdout parsing.
Agent-Ready Command Recipes
Safe Read-Only Queries
inkscape --version
Prints the installed Inkscape version without opening the GUI.
inkscape --query-all diagram.svg
Outputs object IDs and x,y,width,height geometry metrics from diagram.svg.
Controlled Writes & Previews
inkscape diagram.svg --export-type=pdf --export-filename=dist/diagram.pdf
Converts diagram.svg to a print-ready vector PDF without launching the desktop window.
Strengths for Agents
- + Authoritative SVG-to-PDF, EPS, and
--export-text-to-pathvector conversion. - +
--query-allinspects exact bounding boxes of every SVG element ID. - + Rich
--actionspipeline enables headless vector manipulation.
Caveats & Pitfalls
- ! Heavy desktop GUI application with slow startup compared to
resvg. - ! Headless Linux containers often emit noisy GTK/DBus stderr warnings, and bare
inkscape file.svgopens the GUI.