title: How to convert this command to a python code using Wand & ImageMagick
body: <p>I want to convert an image so I can read it better using pyocr &amp; tesseract.
  The Command line I want to convert to python is :</p>
  
  <pre><code>convert pic.png -background white -flatten -resize 300% pic_2.png
  </code></pre>
  
  <p>Using python Wand I managed to resize it but I don't know how to do the flattend and the white background
  My try : </p>
  
  <pre><code>from wand.image import Image
  with Image(filename='pic.png') as image:
      image.resize(270, 33)  #Can I use 300% directly ?
      image.save(filename='pic2.png')
  </code></pre>
  
  <p>Please help
  <br>Edit, Here is the image to make tests on : 
  <img src="https://i.stack.imgur.com/lsL8b.gif" alt="enter image description here">
  <br></p>