← 返回命令列表

Linux command

xpmtoppm 命令

文本

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

常用示例

Example

xpmtoppm [input.xpm] > [output.ppm]

Example

cat [input.xpm] | xpmtoppm > [output.ppm]

Example

xpmtoppm --alphaout=[alpha.pbm] [input.xpm] > [output.ppm]

说明

xpmtoppm reads an X11 pixmap (XPM version 1 or 3) as input and produces a PPM image as output. It handles transparency and color-mapped images. Part of the Netpbm toolkit.

参数

--alphaout=_file_
Write the transparency mask to the specified PBM file. If the input has no transparency information, the file contains all white (opaque) values. Specify `-` to write the alpha output to standard output instead of the image.

FAQ

What is the xpmtoppm command used for?

xpmtoppm reads an X11 pixmap (XPM version 1 or 3) as input and produces a PPM image as output. It handles transparency and color-mapped images. Part of the Netpbm toolkit.

How do I run a basic xpmtoppm example?

Run `xpmtoppm [input.xpm] > [output.ppm]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --alphaout=_file_ do in xpmtoppm?

Write the transparency mask to the specified PBM file. If the input has no transparency information, the file contains all white (opaque) values. Specify `-` to write the alpha output to standard output instead of the image.