Linux command
sgitopnm 命令
文本
Uses pipes, overwrite, or deletion. Check paths and options first.
命令示例
Convert SGI image to PNM
sgitopnm [input.rgb] > [output.pnm]
Extract specific channel
sgitopnm -channel [0] [input.rgb] > [output.pgm]
Convert with verbose output
sgitopnm -verbose [input.rgb] > [output.pnm]
说明
sgitopnm converts Silicon Graphics image format (SGI RGB) to PNM (Portable aNyMap). SGI images typically use .rgb, .rgba, or .bw extensions. Single-channel images produce PGM output; multi-channel images produce PPM. Part of the Netpbm toolkit.
参数
- -channel _n_
- Extract specific channel (0=red, 1=green, 2=blue).
- -verbose
- Print image information.
FAQ
What is the sgitopnm command used for?
sgitopnm converts Silicon Graphics image format (SGI RGB) to PNM (Portable aNyMap). SGI images typically use .rgb, .rgba, or .bw extensions. Single-channel images produce PGM output; multi-channel images produce PPM. Part of the Netpbm toolkit.
How do I run a basic sgitopnm example?
Run `sgitopnm [input.rgb] > [output.pnm]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -channel _n_ do in sgitopnm?
Extract specific channel (0=red, 1=green, 2=blue).