# bmptopnm > 将 BMP 文件转换为 PBM、PGM 或 PNM 图像。 > 更多信息:。 - 生成 PBM、PGM 或 PNM 图像作为输出,以 Windows 或 OS/2 BMP 文件作为输入: `bmptopnm {{path/to/file.bmp}}` - 将 BMP 头的内容报告到 `stderr`: `bmptopnm -verbose {{path/to/file.bmp}}` - 显示版本: `bmptopnm -version`