# phpman > man > pnminvert(1)

> **TLDR:** Invert a PNM image.
>
- Invert the colors or greyscale values in a PNM image:
  `pnminvert {{path/to/input.pnm}} > {{path/to/output.pnm}}`

*Source: tldr-pages*

---

[pnminvert(1)](https://www.chedong.com/phpMan.php/man/pnminvert/1/markdown)                           General Commands Manual                          [pnminvert(1)](https://www.chedong.com/phpMan.php/man/pnminvert/1/markdown)



## NAME
       pnminvert - invert a portable anymap

## SYNOPSIS
       **pnminvert** [_pnmfile_]

## DESCRIPTION
       Reads  a portable anymap as input.  Inverts it black for white and produces a portable anymap
       as output.

## SEE ALSO
       [pnm(5)](https://www.chedong.com/phpMan.php/man/pnm/5/markdown)

## AUTHOR
       Copyright (C) 1989 by Jef Poskanzer.



                                           08 August 1989                               [pnminvert(1)](https://www.chedong.com/phpMan.php/man/pnminvert/1/markdown)
