title: Generate image with page size and resolution?
body: <p>I'd like to use <code>ImageMagick</code>'s <code>convert</code> to generate bitmaps on the fly. </p>
  
  <p>I would, however, like to specify a page size (say, A4 - which would be internally specified in inches/centimeters), and then specify the resolution in DPI - instead of specifying directly the image size in pixels. </p>
  
  <p>From my looking into the <code>convert</code> options, I guessed that the following command line would to the trick: </p>
  
  <pre><code>convert -page A4 -density 300x300 xc:white -pointsize 72 -draw "text 25,60 'test'" test.png
  </code></pre>
  
  <p>... unfortunately, this generates a .png image, which is 1x1 pixels in size. </p>
  
  <p>Is what I want to do possible at all with <code>convert</code>? If not, are there any other tools that could be used for this purpose?</p>