title: gdal resize and save to png using python
body: <p>I know how to use gdal_translate from cmd line to resize and save the png:</p>
  
  <pre><code>gdal_translate -of PNG -outsize 10% 10% image.bsq image.png
  </code></pre>
  
  <p>But using python I only know how to save the png:</p>
  
  <pre><code>from osgeo import gdal
  
  img_png  = 'image.png'
  img_bsq  = 'image.bsq'
  src_ds = gdal.Open(img_bsq)
  out_format = "GTiff"
  driver = gdal.GetDriverByName(out_format)
  dst_ds = driver.CreateCopy(img_png, dst_ds, 0)
  dst_ds = None
  src_ds = None
  </code></pre>
  
  <p>May I ask how to resize and save the png using python?</p>