This command is superseded by pamfile. More information: https://netpbm.sourceforge.net/doc/pnmfile.html.
pamfile
tldr pamfile