title: Changing image projection using Python
body: <p>Image corner coordinates are known:</p>
  <ul>
  <li>Top left: (70.20315, 20.92749)</li>
  <li>Top right: (70.20315, 31.45240)</li>
  <li>Bottom left: (59.70571, 20.92749)</li>
  <li>Bottom right: (59.70571, 31.45240)</li>
  </ul>
  <p>(Basically map over Finland and a little bit of Sweden/Norway/Russia)</p>
  <p>I couldn't find a way to change image projection to Google maps overlay image, preferably using Python.</p>
  <p>It's possible to do that with <a href="https://web.archive.org/web/20141226153942/https://code.google.com/p/pyproj/" rel="nofollow noreferrer">pyproj</a> and <a href="https://web.archive.org/web/20201111170816/https://www.pythonware.com/products/pil/" rel="nofollow noreferrer">PIL</a>, but I wasn't able to figure out how to do that. I also found <a href="https://gdal.org/" rel="nofollow noreferrer">GDAL</a>, and more specifically <a href="https://gdal.org/gdalwarp.html" rel="nofollow noreferrer">gdalwarp</a>, but couldn't find options for changing projection in a correct way.</p>
  <p><img src="https://i.stack.imgur.com/Z7vVf.png" alt="Example image" /></p>