# phpman > man > pcxtoppm(1)

> **TLDR:** Convert a PCX file to a PPM image.
>
- Convert a PCX file to a PPM image:
  `pcxtoppm {{path/to/file.pcx}} > {{path/to/file.ppm}}`
- Use a predefined standard palette even if the PCX file provides one:
  `pcxtoppm {{-s|-stdpalette}} {{path/to/file.pcx}} > {{path/to/file.ppm}}`
- Print information on the PCX header to `stdout`:
  `pcxtoppm {{-verb|-verbose}} {{path/to/file.pcx}} > {{path/to/file.ppm}}`

*Source: tldr-pages*

---

[pcxtoppm(1)](https://www.chedong.com/phpMan.php/man/pcxtoppm/1/markdown)                            General Commands Manual                           [pcxtoppm(1)](https://www.chedong.com/phpMan.php/man/pcxtoppm/1/markdown)



## NAME
       pcxtoppm - convert a PCX file into a portable pixmap


## SYNOPSIS
       **pcxtoppm** [**-stdpalette**] [**-verbose**] [_pcxfile_]


## DESCRIPTION
       Reads a PCX file as input.  Produces a portable pixmap as output.  Supported PCX types are:

       Colormapped files with 2-16 colors.
              "Packed pixel" format (1, 2 or 4 bits/pixel, 1 plane) or bitplane format (1 bit/pixel,
              1-4 planes).  The program checks the colormap and uses an internal one if the provided
              colormap is completely black.

       Colormapped files with 256 colors
              8 bits/pixel, 1 plane, colormap at the end of the file.

       24bit truecolor files
              24bit RGB: 8 bits/pixel, 3 planes.

       32bit truecolor files
              24bit RGB + 8bit intensity: 8 bits/pixel, 4 planes.


## OPTIONS
### -stdpalette
              Enforce the use of the internal colormap for files with 16 colors or less.


## SEE ALSO
       [**ppmtopcx**(1)](https://www.chedong.com/phpMan.php/man/ppmtopcx/1/markdown), [**ppm**(5)](https://www.chedong.com/phpMan.php/man/ppm/5/markdown)


## AUTHORS
       Copyright (C) 1990 by Michael Davidson.
       Modified 1994 by Ingo Wilken (<Ingo.Wilken@informatik.uni-oldenburg.de>)




                                            9 April 1990                                 [pcxtoppm(1)](https://www.chedong.com/phpMan.php/man/pcxtoppm/1/markdown)
