title: Image Magick - Converting text to image - is there a way to center the text to the middle of the image?
body: <p>I have a simple text file that reads something like "It is 28 degrees today" I am trying to use imagemagick to center it to the middle of the image. The command i am using is this right now </p>
  
  <pre><code>    `convert -background lightblue -fill blue  -size 165x70 filename.txt image.png`
  </code></pre>
  
  <p>I tried using gravity but it always put the text outside of the image for some reason. I am not using it correctly from what I can see. I would like it to be centered. Any suggestions?</p>