Your company here — click to reach over 10,000 unique daily visitors

pnminvert - Man Page

invert a PNM image

Examples (TL;DR)





This program is part of Netpbm(1).

pnminvert reads a PNM image as input, inverts it black for white, and produces a PNM image as output.

If the image is grayscale, pnminvert replaces a pixel with one of complementary brightness, i.e. if the original pixel has gamma-adjusted gray value G, the output pixel has gray value maxval - G.

If the image is color, pnminvert inverts each individual RGB component the same as for a grayscale image.


There are no command line options defined specifically for pnminvert, but it recognizes the options common to all programs based on libnetpbm (See Common Options .)

See Also



Copyright (C) 1989 by Jef Poskanzer.

Document Source

This manual page was generated by the Netpbm tool 'makeman' from HTML source.  The master documentation is at


Referenced By

pamarith(1), pamfunc(1), pbmmask(1), pnmpaste(1).

08 August 1989 netpbm documentation