Linux Commands Examples

A great documentation place for Linux commands


convert portable pixmap into a TrueVision Targa file

see also : tgatoppm


ppmtotga [-mono|-cmap|-rgb] [-norle] [ppmfile]

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!


no example yet ...

... Feel free to add your own example above to help other Linux-lovers !


Reads a portable pixmap as input. Produces a TrueVision Targa file as output.



Forces Targa file to be of type 8 bit monochrome. Input must be a portable bitmap or a portable graymap.


Forces Targa file to be of type 24 bit colormapped. Input must be a portable bitmap, a portable graymap or a portable pixmap containing no more than 256 distinct colors.


Forces Targa file to be of type 24 bit unmapped color.


Disables run-length encoding, in case you have a Targa reader which can’t read run-length encoded files.

All flags can be abbreviated to their shortest unique prefix. If no file type is specified the most highly constained compatible type is used, where monochrome is more constained than colormapped which is in turn more constained than unmapped.


Does not support all possible Targa file types. Should really be in PNM, not PPM.

see also

tgatoppm , ppm


Copyright (C) 1989, 1991 by Mark Shand and Jef Poskanzer.

How can this site be more helpful to YOU ?

give  feedback