man > pgmmake(1)

⚡ TLDR: pgmmake (tldr-pages)

Create PGM image with a uniform gray level.

  • Create PGM image with a uniform gray level (specified as a number between 0 and 1) and the specified dimensions
    pgmmake {{graylevel}} {{width}} {{height}} > {{path/to/output_file.pgm}}
Pgmmake User Manual(1)                 General Commands Manual                Pgmmake User Manual(1)

NAME
       pgmmake - create a PGM image of a specified gray level and dimensions


SYNOPSIS
       pgmmake [-maxval=maxval] graylevel width height

       All  options can be abbreviated to their shortest unique prefix.  You may use two hyphens in‐
       stead of one to designate an option.  You may use either white space or an  equals  sign  be‐
       tween an option name and its value.



DESCRIPTION
       This program is part of Netpbm(1).

       pgmmake produces a PGM image of the specified gray level, width, height, and maxval.

       Specify  the  gray  level (graylevel) as a decimal floating point number in the range [0, 1].
       E.g. 1 is white, 0 is black, and 0.5 is half luminosity gray.


EXAMPLES
           pgmmake 1 50 50

           pgmmake .2 50 100 -maxval=5




OPTIONS
       In addition to the options common to all programs based on libnetpbm  (most  notably  -quiet,
       see  Common Options ), pgmmake recognizes the following command line option:



       -maxval=maxval
                   The maxval for the generated image.  Default is 255.



SEE ALSO
       pbmmake(1), ppmmake(1), pgm(1)


HISTORY
       This program was new in Netpbm 10.32 (February 2006).

       With older Netpbm, use ppmmake and ppmtopgm.

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/pgmmake.html

netpbm documentation                      19 February 2006                    Pgmmake User Manual(1)

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