man > pgmtopgm(1)

TLDR: pgmtopgm (tldr-pages)

Copy a PGM image file.

  • Copy PGM file from `stdin` to `stderr`
    pgmtopgm
  • Display version
    pgmtopgm -version
Pgmtopgm User Manual(1)                General Commands Manual               Pgmtopgm User Manual(1)

NAME
       pgmtopgm - copy PGM image


SYNOPSIS
       pgmtopgm


DESCRIPTION
       This program is part of Netpbm(1).

       pgmtopgm  simply copies a PGM image from Standard Input to Standard Output.  This may seem an
       unnecessary duplication of cat, but remember that a PGM program can read a PBM image as if it
       were PGM.  So pgmtopgm can read either a PBM or PGM image and produce a PGM image as output.

       Even that is of limited usefulness because of the fact that almost any program to  which  you
       would  feed  the  resulting PGM image could also just take the original image directly.  How‐
       ever, sometimes you really need a true PGM image.

       When you know you have a PBM image and want a PGM image, pbmtopgm is a more general way to do
       that conversion.



OPTIONS
       There are no command line options defined specifically for pgmtopgm, but  it  recognizes  the
       options common to all programs based on libnetpbm (See ]8;;index.html#commonoptions\ Common Options]8;;\ .)


SEE ALSO
       ppmtoppm(1), pamtopam(1), pamtopnm(1), pbmtopgm(1), pbm(1), pgm(1),


HISTORY
       This program was added to Netpbm in Release 10.9 (September 2002).

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

              http://netpbm.sourceforge.net/doc/pgmtopgm.html

netpbm documentation                       September 2002                    Pgmtopgm User Manual(1)

Generated by phpman v4.9.26-5-g7740029 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-10 13:23 @216.73.216.11
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!