Linux Commands Examples

A great documentation place for Linux commands

xpmtoppm

convert an X11 pixmap into a portable pixmap


see also : ppmtoxpm - pnmcomp

Synopsis

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


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

0
source
            
elif [ $extension = xpm ]; then
xpmtoppm $filename > $ppmfile
elif [ $extension = pcx ]; then
pcxtoppm $filename > $ppmfile
0
source
            
*.xpm ) xpmtoppm $filename > $ppmfile ;;
*.pcx ) pcxtoppm $filename > $ppmfile ;;
*.tif ) tifftopnm $filename > $ppmfile ;;
0
source
            
*.xpm ) convert=xpmtoppm ;;
*.pcx ) convert=pcxtoppm ;;
*.tif ) convert=tifftopnm ;;
0
source
            
*.xpm ) convert=xpmtoppm ;;
*.pcx ) convert=pcxtoppm ;;
*.tif ) convert=tifftopnm ;;
0
source
            
*.xpm) CONV=xpmtoppm ; INVCONF=ppmtoxpm;;
*.gif) CONV=giftopnm ; INVCONF=ppmtogif;;
*.png) CONV=pngtopnm ; INVCONF=pnmtopng;;

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 , pnmcomp , ppm


author

Copyright (C) 1991 by Jef Poskanzer.

Upgraded to support XPM version 3 by
Arnaud Le Hors (lehors[:at:]mirsa.inria[:dot:]fr)
Tue Apr 9 1991

How can this site be more helpful to YOU ?


give  feedback