I'm trying to load an image on a Leaflet map and to display it at the right place using the world information exported by QGIS.
For image overlays, Leaflet needs the coordinates of the upper left point and of the lower right point (boundaries):
var imageUrl = 'http://www.lib.utexas.edu/maps/historical/newark_nj_1922.jpg',
imageBounds = [[40.712216, -74.22655], [40.773941, -74.12544]]; L.imageOverlay(imageUrl, imageBounds).addTo(map);
In QGIS, when I export my image, I always use the 1:25000 scale and 72 DPI, which is a constant in my workflow.
It outputs a world file (PGW) that contains the information:
8.86711729729699094 //xscale
0 //yskew
0 //xskew
-8.86711729729699094 //yscale
491355.98836270271567628 //xpos
6600748.93414135184139013 //ypos
Knowing all that information, is there a way to convert the world file information into geographical coordinates I could use in Leaflet?