Skip to content

Instantly share code, notes, and snippets.

@kodaka
Created August 3, 2019 04:13
Show Gist options
  • Save kodaka/29c34f89c268a7b53b0e82bb7f0319cd to your computer and use it in GitHub Desktop.
Save kodaka/29c34f89c268a7b53b0e82bb7f0319cd to your computer and use it in GitHub Desktop.
title date tags
Beautiful PNG from Graphviz
2019-07-28 03:00:00 +0900
graphviz
librsvg
homebrew

Outputted PNG by Graphviz must be beauty.

The plan is to convert SVG outputted by dot to PNG.

You will install graphviz and librsvg by Homebrew.

brew install graphviz
brew install librsvg

And you can now create PNG with sizing option:

dot -Tsvg input.dot | rsvg-convert -w 1000 > output.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment