LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

xwdtopnm

Convert XWD screenshots to PNM format

TLDR

Convert an XWD file to PNM
$ xwdtopnm [input.xwd] > [output.pnm]
copy
Read from stdin and write to stdout
$ cat [input.xwd] | xwdtopnm > [output.pnm]
copy

SYNOPSIS

xwdtopnm [file]

DESCRIPTION

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.

SEE ALSO

Copied to clipboard
Kai