← 返回命令列表

Linux command

bmptopnm 命令

文本

涉及管道、覆盖或删除,执行前请先确认路径和参数。

常用示例

Convert a BMP image

bmptopnm [image.bmp] > [output.pnm]

Convert from stdin

cat [image.bmp] | bmptopnm > [output.pnm]

Convert BMP to PNG

bmptopnm [image.bmp] | pnmtopng > [output.png]

说明

bmptopnm reads a Microsoft Windows or OS/2 BMP file as input and produces a PNM (Portable aNyMap) image as output. The output format (PBM, PGM, or PPM) depends on the input: grayscale images produce PGM, color images produce PPM, and monochrome images produce PBM. This is part of the Netpbm package of image manipulation utilities. Input can be from a file or standard input; output is to standard output.

参数

-verbose
Print additional information about the input file.

FAQ

What is the bmptopnm command used for?

bmptopnm reads a Microsoft Windows or OS/2 BMP file as input and produces a PNM (Portable aNyMap) image as output. The output format (PBM, PGM, or PPM) depends on the input: grayscale images produce PGM, color images produce PPM, and monochrome images produce PBM. This is part of the Netpbm package of image manipulation utilities. Input can be from a file or standard input; output is to standard output.

How do I run a basic bmptopnm example?

Run `bmptopnm [image.bmp] > [output.pnm]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -verbose do in bmptopnm?

Print additional information about the input file.