# asciitopgm > 将ASCII图形转换为PGM文件。 > 更多信息:。 - 读取ASCII数据作为输入,并生成一个PGM图像,其像素值近似于ASCII字符的“亮度”: `asciitopgm {{path/to/input_file}} > {{path/to/output_file.pgm}}` - 显示版本: `asciitopgm -version`