title: How to convert a SVG to a PNG with ImageMagick?
body: <p>I have a SVG file that has a defined size of 16x16. When I use ImageMagick's convert program to convert it into a PNG, then I get a 16x16 pixel PNG which is way too small:</p>
  
  <pre><code>convert test.svg test.png
  </code></pre>
  
  <p>I need to specify the pixel size of the output PNG. <code>-size</code> parameter seems to be ignored, <code>-scale</code> parameter scales the PNG <strong>after</strong> it has been converted to PNG. The best result up to now I got by using the <code>-density</code> parameter:</p>
  
  <pre><code>convert -density 1200 test.svg test.png
  </code></pre>
  
  <p>But I'm not satisfied, because I want to specify the output size in pixels without doing math to calculate the density value. So I want to do something like this:</p>
  
  <pre><code>convert -setTheOutputSizeOfThePng 1024x1024 test.svg test.png
  </code></pre>
  
  <p>So what is the magic parameter I have to use here? </p>