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=None, verbose=None, quiet=None, superquiet=None)
Example:
gs.run_command("g.ppmtopng", input="name", output="name")
grass.tools.Tools.g_ppmtopng(input, output, overwrite=None, verbose=None, quiet=None, superquiet=None)
Example:
tools = Tools()
tools.g_ppmtopng(input="name", output="name")
This grass.tools API is experimental in version 8.5 and expected to be stable in version 8.6.
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: None
verbose: bool, optional
Verbose module output
Default: None
quiet: bool, optional
Quiet module output
Default: None
superquiet: bool, optional
Very quiet module output
Default: None
input : str | io.StringIO, 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: None
verbose: bool, optional
Verbose module output
Default: None
quiet: bool, optional
Quiet module output
Default: None
superquiet: bool, optional
Very quiet module output
Default: None
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: Thursday Jul 10 16:27:29 2025 in commit c185d6f