title: running imagemagick convert (console application) from python
body: <p>I am trying to rasterize some fonts using imagemagick with this command which works fine from a terminal: </p>
  
  <pre><code>convert -size 30x40 xc:white -fill white -fill black -font "fonts\Helvetica Regular.ttf" -pointsize 40 -gravity South -draw "text 0,0 'O'" draw_text.gif
  </code></pre>
  
  <p>Running the same command using subprocess to automate it does not work:</p>
  
  <pre><code>try:
      cmd= ['convert','-size','30x40','xc:white','-fill','white','-fill','black','-font','fonts\Helvetica Regular.ttf','-pointsize','40','-gravity','South','-draw',"text 0,0 'O'",'draw_text.gif']
      #print(cmd)
      subprocess.check_output(cmd,shell=True,stderr=subprocess.STDOUT)
  except CalledProcessError as e:
      print(e)
      print(e.output)
  </code></pre>
  
  <p>.</p>
  
  <pre><code>Command '['convert', '-size', '30x40', 'xc:white-fill', 'white', '-fill', 'black', '-font', 'fonts\\Helvetica Regular.ttf', '-pointsize', '40', '-gravity', 'South', '-draw', "text 0,0 'O'", 'draw_text.gif']' returned non-zero exit status 4
  b'Invalid Parameter - 30x40\r\n'
  </code></pre>