Linux Commands Examples

A great documentation place for Linux commands

ximtoppm

convert an Xim file into a portable pixmap


see also : pnmcomp

Synopsis

ximtoppm [--alphaout={alpha-filename,-}] [ximfile]


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
            
ximtoppm "$file"
;;
*.xpm | *.xpm.* | *.xpm2 | *.xpm2.* )
xpmtoppm "$file"
0
source
            
ximtoppm "$file"
;;
pi1 )
pi1toppm "$file"
;;
pi3 )
pi3topbm "$file"
0
source
            
ximtoppm "$file"
;;
pi1 )
pi1toppm "$file"
;;
pi3 )
pi3topbm "$file"

description

Reads an Xim file as input. Produces a portable pixmap as output. The Xim toolkit is included in the contrib tree of the X.V11R4 release.

options

--alphaout=alpha-filename

ximtoppm creates a PGM (portable graymap) file containing the alpha channel values in the input image. If the input image doesn’t contain an alpha channel, the alpha-filename file contains all zero (transparent) alpha values. If you don’t specify --alphaout, ximtoppm does not generate an alpha file, and if the input image has an alpha channel, ximtoppm simply discards it.

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

Actually, an Xim image can contain an arbitrary fourth channel -- it need not be an Alpha channel. ximtoppm extracts any fourth channel it finds as described above; it doesn’t matter if it is an alpha channel or not.

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

All options can be abbreviated to their shortest unique prefix.


see also

pnmcomp , ppm


author

Copyright (C) 1991 by Jef Poskanzer.

How can this site be more helpful to YOU ?


give  feedback