$dcmtk: dcmp2pgm v3.7.1 2026-10-15 $ dcmp2pgm: Read DICOM image and presentation state and render bitmap usage: dcmp2pgm [options] dcmfile-in [bitmap-out] parameters: dcmfile-in input DICOM image ("-" for stdin) bitmap-out output DICOM image or PGM bitmap general options: -h --help print this help text and exit --version print version information and exit --arguments print expanded command line arguments -q --quiet quiet mode, print no warnings and errors -v --verbose verbose mode, print processing details -d --debug debug mode, print debug information -ll --log-level [l]evel: string constant (fatal, error, warn, info, debug, trace) use level l for the logger -lc --log-config [f]ilename: string use config file f for the logger processing options: -p --pstate [f]ilename: string process using presentation state file -c --config [f]ilename: string process using settings from configuration file -f --frame [f]rame: integer process using image frame f (default: 1) output format: -D --pgm save image as PGM (default) +D --dicom save image as DICOM secondary capture output options: +S --save-pstate [f]ilename: string save presentation state to file