SVG PNG Converter

Examples:

AboutLoad Image

SVG code to render as plain text. For CLi or Node.js, it can also be path or glob file pattern to .svg files, relative to current dir.

  • unknown (image/svg+xml, 5891 bytes)

Output format. One of: `png, jpeg`. By default: `png`.

Cropping width. Introduced in v1.2.14

Fill color. Will be ignored when exporting as \<symbol\>. (default: `PotraceTurnPolicy.COLOR_AUTO`, which means black or white, depending on `blackOnWhite` property)

Background color. Will be ignored when exporting as \<symbol\>. By default is not present (`PotraceTurnPolicy.COLOR_TRANSPARENT`)

specifies colors by which side from threshold should be traced (default true).

Cropping height. Introduced in v1.2.14

Multiplier to scale by

Quality level (0..1). Only used for jpeg

Cropping left offset. Introduced in v1.2.14

Cropping top offset. Introduced in v1.2.14

Node.js and CLI only. Prints debug messages.

Output:graph1.png
Input: graph1.svg (8 KB)
ATN s149 149 s1155 1155 s1158 ← 1158 s1155->s1158 <statement> s148 148 s1157 → 1157 d=121 s148->s1157 ε s1156 1156 s1156->s1158 <declaration> s1157:p0->s1155 ε s1157:p1->s1156 ε s1158->s149 ε