phpMan > man > xpmtoppm(1)

Markdown | JSON | MCP    

TLDR: xpmtoppm (tldr-pages)

Convert an X11 pixmap to a PPM image.

  • Convert an XPM image to a PPM image
    xpmtoppm {{path/to/input_file.xpm}} > {{path/to/output_file.ppm}}
  • Store the transparency mask of the input image in the specified file
    xpmtoppm {{-a|--alphaout}} {{path/to/alpha_file.pbm}} {{path/to/input_file.xpm}} > {{path/to/output_file.ppm}}
xpmtoppm(1)                            General Commands Manual                           xpmtoppm(1)



NAME
       xpmtoppm - convert an X11 pixmap into a portable pixmap


SYNOPSIS
       xpmtoppm [--alphaout={alpha-filename,-}] [-verbose] [xpmfile]


DESCRIPTION
       Reads an X11 pixmap (XPM version 1 or 3) as input.  Produces a PPM file as output.


OPTIONS
       --alphaout=alpha-filename
              xpmtoppm  creates  a  PBM file containing the transparency mask for the image.  If the
              input image doesn't contain transparency information, the alpha-filename file contains
              all  white  (opaque) alpha values.  If you don't specify --alphaout, xpmtoppm does not
              generate an alpha file, and if the input image has transparency information,  xpmtoppm
              simply discards it.

              If  you specify - as the filename, xpmtoppm writes the alpha output to Standard Output
              and discards the image.

              See pnmcomp(1) for one way to use the alpha output file.

       --verbose
              xpmtoppm prints information about its processing on Standard Error.


LIMITATIONS
       The support to XPM version 3 is limited. Comments can only be single lines and there must  be
       for every pixel a default colorname for a color type visual.


SEE ALSO
       ppmtoxpm(1), pnmcomp(1), ppm(5)


AUTHOR
       Copyright (C) 1991 by Jef Poskanzer.

       Upgraded to support XPM version 3 by
           Arnaud Le Hors (lehors AT mirsa.fr)
           Tue Apr 9 1991



                                             06 May 2001                                 xpmtoppm(1)

Generated by phpMan v2.3-7-ge44725b Author: Che Dong Under GNU General Public License
2026-06-03 04:16 @216.73.216.151
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 TransitionalValid CSS!