genpng(1)

genpng1

Genpng documentation

Usage

genpng [ -h | --help ]
 [ -v | --version ]
 [ -t | --tab-size *tabsize* ]
 [ -w | --width *width* ]
 [ -d | --dark-mode ]
 [ -o | --output-filename *output-filename* ]
 source-file

Overview

genpng creates an overview image for a given source code file of either plain text or .gcov file format.

Note that the GD.pm Perl module has to be installed for this script to work (it may be obtained from <http://www.cpan.org>).

Note also that genpng is called from within genhtml so that there is usually no need to call it directly.

Options

-h, –help

Print a short help text, then exit.

-v, –version

Print version number, then exit.

-t tab-size, –tab-size tab-size

Use tab-size spaces in place of tab.

All occurrences of tabulator signs in the source code file will be replaced by the number of spaces defined by tab-size (default is 4).

-w width, –width width

Set width of output image to width pixel.

The resulting image will be exactly width pixel wide (default is 80).

Note that source code lines which are longer than width will be truncated.

-d, –dark-mode

Use a light-display-on-dark-background color scheme rather than the default dark-display-on-light-background.

-o filename, –output-filename filename

Write image to filename.

Specify a name for the resulting image file (default is source-file.png).

Releases

12 releases since Debian 3.1 (Sarge); the text changed 10 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7
  6. 8
  7. 9–10
  8. 11
  9. 12
  10. 13
  11. Arch

--dark-mode until Debian 13 (Trixie); --help until Debian 13 (Trixie); --output-filename until Debian 13 (Trixie); --tab-size until Debian 13 (Trixie); --version until Debian 13 (Trixie); --width until Debian 13 (Trixie); -d until Debian 13 (Trixie); -h until Debian 13 (Trixie); -o until Debian 13 (Trixie); -t until Debian 13 (Trixie); -v until Debian 13 (Trixie); -w until Debian 13 (Trixie).

Author

Peter Oberparleiter <<[email protected]>>

From lcov 2.6-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.