pnmtosgi(1) on Linux
The text d526ec81a401, as Debian 13 (Trixie), Debian 12 (Bookworm) shipped it.
convert a PNM image to a SGI image file
Flags it lists
-
-imagename -
-rle -
-verbatim