This is not a scientific tool.
It is a simplified version of the tool described by: http://paulbourke.net/panorama/webmerc2sphere/index.html
usage: main.py [--invert] input_image output_image
Default is to convert from mercator to equirectangular.
The option --invert
does equirectangular to mercator.
Source for input.png is Wikipedia (unmodified, Author: Justin Kunimune, License: CC BY-SA 4.0).
Comparing the output of this script with the image of a equirectangular projection on Wikipedia, the output looks good enough for my use case.
Input | Output |
---|---|
![]() |
![]() |