Inkline
Menu
Docs / Reference

Export formats

Every format is free and has no watermark. Text is drawn with the bundled Inter font, so an export looks the same on every machine.

FormatBest forIn the browserCLI
SVGDocs, wikis, web pages; scales without blurMade locally, works offline-o file.svg
PNGSlides, chat, issuesMade locally, works offline-o file.png
JPEGEmail and tools that reject PNGRender service-o file.jpg
WebPSmaller web imagesRender service-o file.webp
PDFPrint and sign-off; vector textRender service-o file.pdf

Options

OptionValuesNotes
Size (scale)1x–4xPixel density for PNG, JPEG and WebP. SVG and PDF are vector.
Colours (theme)As written, slate, light, darkOverrides the theme line in the file.
BackgroundTheme, transparent, white, or a hex colourJPEG cannot be transparent; it is flattened to white.
Padding0–400 pxSpace around the diagram. Default 24.

From the playground

Press Export (or Ctrl + E) in the playground. The dialog shows the matching CLI command, so you can repeat the same export in a script or CI job. Copy SVG puts the SVG text on your clipboard for pasting into Figma, a wiki or a pull request.

From the CLI

$ ink render checkout.ink -o checkout.png --scale 2 --background transparent
$ ink render checkout.ink -o checkout.pdf --theme light
$ ink render checkout.ink -o checkout.jpg --quality 85

See the CLI reference for every flag.

Render API

The web app's render route (POST /api/render) draws a diagram on the server. Public access, with API tokens and quotas, arrives with the cloud release; until then it serves the playground.

{
  "source": "diagram flow \"Sign up\"\n  start a \"Form sent\"\n  end b \"Done\"\n  a -> b",
  "format": "png",
  "scale": 2,
  "theme": "light",
  "background": "transparent",
  "padding": 24
}

It answers 200 with the file, or 422 with { "diagnostics": [...] } when the source has errors, using the same codes as the editor and CLI.