pnmmercator
Convert between map projections for images
TLDR
Apply Mercator projection
$ pnmmercator [input.pnm] > [output.pnm]
Inverse projection$ pnmmercator -inverse [input.pnm] > [output.pnm]
SYNOPSIS
pnmmercator [options] [file]
DESCRIPTION
pnmmercator converts PNM images between equirectangular (plate carrée) and Mercator map projections. The input image is treated as a map where rows correspond to latitude lines and columns to longitude lines.The forward transform converts equirectangular to Mercator projection, stretching areas near the poles. The -inverse option reverses this, converting from Mercator back to equirectangular. Part of the Netpbm toolkit.
PARAMETERS
-inverse
Convert from Mercator to equirectangular.
INSTALL
sudo apt install netpbm
sudo dnf install netpbm
sudo pacman -S netpbm
sudo apk add netpbm
sudo zypper install netpbm
brew install netpbm
nix profile install nixpkgs#netpbm