Linux Commands Examples

A great documentation place for Linux commands


convert a portable anymap to a SGI image file

see also : sgitopnm


pnmtosgi [-verbatim|-rle] [-imagename Name] [pnmfile]

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 anymap as input. Produces an SGI image file as output. The SGI image will be 2-dimensional (1 channel) for PBM and PGM input, and 3-dimensional (3 channels) for PPM.



Write an uncompressed file.

-rle (default)

Write a compressed (run length encoded) file.

-imagename name

Write the string "name" into the imagename field of the header. The name string is limited to 79 characters. If no name is given, pnmtosgi writes "no name" into this field.


SGI Image File Format documentation (draft v0.95) by Paul Haeberli (paul[:at:]sgi[:dot:]com). Available via ftp at



see also

pnm, sgitopnm


Copyright (C) 1994 by Ingo Wilken (Ingo.Wilken[:at:]informatik[:dot:]

How can this site be more helpful to YOU ?

give  feedback