Pgmtopgm User Manual

Pgmtopgm User Manual



pgmtopgm - copy PGM image




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. However, 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.


ppmtoppm(1) , pamtopam(1) , pamtopnm(1) , pbmtopgm(1) , pbm(5) , pgm(5) ,


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

More Linux Commands

ip(7) - Linux IPv4 protocol implementation - Linux man page
Linux implements the Internet Protocol, version 4, described in RFC 791 and RFC 1122. ip contains a level 2 multicasting implementation conforming to RFC 1112.

getaddrinfo_a(3) - asynchronous network address and service
The getaddrinfo_a() function performs the same task as getaddrinfo(3), but allows multiple name look-ups to be performed asynchronously, with optional notificat

spawn(8) - Postfix external command spawner - Linux man page
The spawn(8) daemon provides the Postfix equivalent of inetd. It listens on a port as specified in the Postfix file and spawns an external command whe

idmap_tdb(8) - Samba's idmap_tdb Backend for Winbind........
The idmap_tdb plugin is the default backend used by winbindd for storing SID/uid/gid mapping tables. In contrast to read only backends like idmap_rid, it is an

pcre_jit_stack_free(3) Perl-compatible regular expressions
This function is used to free a JIT stack that was created by pcre[16|32]_jit_stack_alloc() when it is no longer needed. For more details, see the pcrejit page.

Ttk_GetStickyFromObj(3) - Tk themed geometry utilities......
The Ttk_Box structure represents a rectangular region of a window: typedef struct { int x; int y; int width; int height; } Ttk_Box; All coordinates are relative

qgcvt(3) - convert a floating-point number to a string......
The functions qecvt(), qfcvt() and qgcvt() are identical to ecvt(3), fcvt(3) and gcvt(3) respectively, except that they use a long double argument number. See e

mimecheck(1) - determine the type of the MIME encoded of an
The scripts mimecheck, mimezip, mimebzip, and mimegzip can be used to determine the contents of MIME encoded attachments of the type application/octet-stream. T

HeightOfScreen(3) - screen information functions and macros
The BlackPixelOfScreen macro returns the black pixel value of the specified screen. The WhitePixelOfScreen macro returns the white pixel value of the specified

digitaglinktree(1) - Export tag structure of photos in digik
digitaglinktree will create a linktree for all photos in a digikam database that have tags set on them. Tags (like eg. family, events, ...) are used in digikam

Tcl_GetEncoding(3) - procedures for creating and using encod
Tcl_GetEncoding finds an encoding given its name. The name may refer to a built-in Tcl encoding, a user-defined encoding registered by calling Tcl_CreateEncodin

efikeygen(1) command line tool for generating keys to use fo
efikeygen is a command line tool for generating keys and certificates to be used with pesign. These are standard X.509 certificates, and can potentially be gene

We can't live, work or learn in freedom unless the software we use is free.