title: OpenLayers.Image positionning difference between kml vs openlayers
body: <p>I have an issue to correctly positionning an image with  OpenLayers. I have a web software how create KML file or display map on a webpage.</p>
  
  <p>Here a screenshot of a map display on Google Earth and the same display with  openlayers, (Google Earth is the good visualization). 
  The map is a bit stretch on the north</p>
  
  <p><a href="https://i.stack.imgur.com/Tf8pc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Tf8pc.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/RO8ms.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RO8ms.png" alt="enter image description here"></a></p>
  
  <p>What is false ? the epsg conversion ? Do I Need to rebuld image with  gdalwarp ?</p>
  
  <p>Here a sample of my code </p>
  
  <pre><code>function ConvertLonLatFromESPG4326ToESPG900913(LonLat) {
  var lonlatTransforme = LonLat.clone();
  if (map == null) {
      lonlatTransforme.transform(new OpenLayers.Projection("EPSG:4326"), new OpenLayers.Projection("EPSG:900913"));
  }
  else {
      lonlatTransforme.transform(new OpenLayers.Projection("EPSG:4326"), new OpenLayers.Projection(map.getProjectionObject().projCode));
  }
  return lonlatTransforme;
  
  }
  
  var bounds = new OpenLayers.Bounds();
  bounds.extend(ConvertLonLatFromESPG4326ToESPG900913(new OpenLayers.LonLat(y1, x1)));
  bounds.extend(ConvertLonLatFromESPG4326ToESPG900913(new OpenLayers.LonLat(y2, x2)));
  
  var graphic = new OpenLayers.Layer.Image(
              nomImage,
              url,
              bounds,
              new OpenLayers.Size($("#map").width(), $("#map").height()),
              {
                  //http://www.forumsig.org/showthread.php?t=26393
                  maxResolution: map.layers[0].resolutions[0],
                  resolutions: map.layers[0].resolutions,                    
                  isBaseLayer: false,
                  displayInLayerSwitcher: true
              }
          );
  map.addLayer(graphic);
  </code></pre>
  
  <p>Thanks for your help</p>