Skip to content

g.ppmtopng

Converts between PPM/PGM and PNG image formats.

g.ppmtopng input=name output=name [--overwrite] [--verbose] [--quiet] [--qq] [--ui]

Example:

g.ppmtopng input=name output=name

grass.script.run_command("g.ppmtopng", input, output, overwrite=False, verbose=False, quiet=False, superquiet=False)

Example:

gs.run_command("g.ppmtopng", input="name", output="name")

Parameters

input=name [required]
    Name of input file
output=name [required]
    Name for output file
--overwrite
    Allow output files to overwrite existing files
--help
    Print usage summary
--verbose
    Verbose module output
--quiet
    Quiet module output
--qq
    Very quiet module output
--ui
    Force launching GUI dialog

input : str, required
    Name of input file
    Used as: input, file, name
output : str, required
    Name for output file
    Used as: output, file, name
overwrite: bool, optional
    Allow output files to overwrite existing files
    Default: False
verbose: bool, optional
    Verbose module output
    Default: False
quiet: bool, optional
    Quiet module output
    Default: False
superquiet: bool, optional
    Very quiet module output
    Default: False

DESCRIPTION

g.ppmtopng isn't meant for end users. It's a utility to convert between PPM/PGM and PNG image formats.

AUTHOR

Glynn Clements

SOURCE CODE

Available at: g.ppmtopng source code (history)
Latest change: Friday Feb 07 19:16:09 2025 in commit a82a39f