title: How do I pass parameter values to Popen?
body: <p>From the python console this works:</p>
  
  <pre><code>convert -quality 100 in.pdf out.png
  </code></pre>
  
  <p>but when I add that command to my Python script like this:</p>
  
  <pre><code>Popen(['convert', '-quality 100', 'in.pdf', 'out.png'])
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>unrecognized option `-quality 100'
  </code></pre>
  
  <p>If I change that parameter to <code>'-quality=100'</code> I still get the error.</p>
  
  <p>I tried fixing it like this:</p>
  
  <pre><code>Popen(['convert', '-quality', '100', 'in.pdf', 'out.png'])
  </code></pre>
  
  <p>which runs but fails to produce an <code>out.png</code>.</p>
  
  <p>UPDATE: The last version is working. I must have mistyped it originally.</p>