---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pnmmercator

> Perform Mercator transformations on Netpbm images.
> See also: `pnmglobe`.
> More information: <https://netpbm.sourceforge.net/doc/pnmmercator.html>.

- Convert a rectangular projection worldmap to Mercator projection:

`pnmmercator {{path/to/image.pnm}} > {{path/to/output.pnm}}`

- Convert a Mercator projection worldmap to rectangular projection:

`pnmmercator {{[-i|-inverse]}} {{path/to/image.pnm}} > {{path/to/output.pnm}}`
