1. Computing & Technology
Linux / Unix Command: pnmtosgi
Command Library

NAME

pnmtosgi - convert a portable anymap to a SGI image file  

SYNOPSIS

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

DESCRIPTION

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.  

OPTIONS

-verbatim
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.
 

SEE ALSO

pnm(5), sgitopnm(1)  

Important: Use the man command (% man) to see how a command is used on your particular computer.

>> Linux/Unix Command Library

>> Shell Command Library

Discuss in my forum

©2012 About.com. All rights reserved.

A part of The New York Times Company.