Convert ASCII graphics into a PGM file. More information: https://netpbm.sourceforge.net/doc/asciitopgm.html.
asciitopgm path/to/input_file > path/to/output_file.pgm
asciitopgm -version