← 返回命令列表

Linux command

xwdtopnm 命令

文本

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

常用示例

Convert an XWD file to PNM

xwdtopnm [input.xwd] > [output.pnm]

Read from stdin and write to stdout

cat [input.xwd] | xwdtopnm > [output.pnm]

说明

xwdtopnm reads an X Window Dump (XWD) image as input and produces a PNM (Portable aNy Map) image as output. XWD files are typically created by the X11 xwd utility for capturing window screenshots. If no input file is specified, xwdtopnm reads from standard input. Output is always written to standard output. The output format (PBM, PGM, or PPM) depends on the color depth of the input image. This tool is part of the Netpbm toolkit, a collection of image conversion and manipulation utilities.

FAQ

What is the xwdtopnm command used for?

xwdtopnm reads an X Window Dump (XWD) image as input and produces a PNM (Portable aNy Map) image as output. XWD files are typically created by the X11 xwd utility for capturing window screenshots. If no input file is specified, xwdtopnm reads from standard input. Output is always written to standard output. The output format (PBM, PGM, or PPM) depends on the color depth of the input image. This tool is part of the Netpbm toolkit, a collection of image conversion and manipulation utilities.

How do I run a basic xwdtopnm example?

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

Where can I find more xwdtopnm examples?

This page includes 2 examples for xwdtopnm, plus related commands for nearby Linux tasks.