title: How do I save an svg image
body: <p>Let's say I have made an svg image in Elm:</p>
  <pre><code>svg [ viewBox &quot;0 0 100 100&quot; ] [ circle [ cx &quot;60&quot;, cy &quot;60&quot;, r &quot;50&quot; ] [] ]
  </code></pre>
  <p>How do I go about saving that image?</p>
  <p>Just embedding it in html and right clicking doesn't work; and I can't find any other way to use it.</p>
  <p>edit:</p>
  <p>The &quot;best&quot; I've gotten so far is to use inspect mode and copy the generated html, save that as a file manually. This was enough to unblock me currently. Obviously that could be scripted with JavaScript, but I'm looking for an Elm solution.</p>
  <p>The actual usecase I have is that I generate an identicon in Elm; like for instance <a href="https://package.elm-lang.org/packages/coinop-logan/phace/latest/" rel="nofollow noreferrer">Phace</a>; my own package though, since the images should make sense in my app.</p>
  <p>I want to be able to save the actual image, rather than the data used to generate it. Converting it to a png would be fine for this, though I prefer an svg.</p>