# Include SVG image in a node

**URL:** https://forum.graphviz.org/t/include-svg-image-in-a-node/899
**Category:** Help
**Created:** [November 7, 2021, 7:01am UTC](https://forum.graphviz.org/t/include-svg-image-in-a-node/899 "2021-11-07T07:01:41Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Rowdy](https://avatars.discourse-cdn.com/v4/letter/r/a698b9/32.png) [@Rowdy](https://forum.graphviz.org/u/Rowdy)
#### Post date: [November 7, 2021, 7:01am UTC](https://forum.graphviz.org/t/include-svg-image-in-a-node/899/1 "2021-11-07T07:01:41Z")

</div>

How do I insert a svg image inside of a node ?

> digraph G {  
> “00” [image = “test.svg”];  
> }

Executing dot on this will output the following error :  
Warning: No loadimage plugin for “svg:cairo”

Preferably, I would want a solution/fix for Windows operating system, but a Windows linux subsystem solution could also work.

---

<div class="post-metadata">

### Author: ![steveroush](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@steveroush](https://forum.graphviz.org/u/steveroush)
#### Post date: [November 8, 2021, 5:47pm UTC](https://forum.graphviz.org/t/include-svg-image-in-a-node/899/2 "2021-11-08T17:47:04Z")

</div>

What command line are you using?  
Are you explicitly using the cairo renderer? ( **-Tsvg:cairo** )  
While including images does _not_ work with the cairo renderer, it does work with the Graphviz-native SVG renderer. On my computer, **-Tsvg** invokes the native renderer.

---

<div class="post-metadata">

### Author: ![Rowdy](https://avatars.discourse-cdn.com/v4/letter/r/a698b9/32.png) [@Rowdy](https://forum.graphviz.org/u/Rowdy)
#### Post date: [November 8, 2021, 10:12pm UTC](https://forum.graphviz.org/t/include-svg-image-in-a-node/899/3 "2021-11-08T22:12:51Z")

</div>

Hello, I was using -Tpng in my command line.  
If I use -Tsvg it seems to work.  
Why can’t I convert the output to png directly ?  
At least by using -Tsvg it fixes my problem, since I can use an external software to rasterize my svg to a png.
