HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

pnmtosgi — Convert a PNM file to an SGI image file. More information: <https://netpbm.sourceforge.net/doc/pnmto

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandsgipnmtosgiconvertclifileimagepnm

Problem

How to use the pnmtosgi command: Convert a PNM file to an SGI image file. More information: <https://netpbm.sourceforge.net/doc/pnmtosgi.html>.

Solution

pnmtosgi — Convert a PNM file to an SGI image file. More information: <https://netpbm.sourceforge.net/doc/pnmtosgi.html>.

Convert a PNM image to an SGI image:
pnmtosgi {{path/to/input.pnm}} > {{path/to/output.sgi}}


Disable or enable compression:
pnmtosgi -{{verbatim|rle}} {{path/to/input.pnm}} > {{path/to/output.sgi}}


Write the specified string into the SGI image header's imagename field:
pnmtosgi {{[-i|-imagename]}} {{string}} {{path/to/input.pnm}} > {{path/to/output.sgi}}

Code Snippets

Convert a PNM image to an SGI image

pnmtosgi {{path/to/input.pnm}} > {{path/to/output.sgi}}

Disable or enable compression

pnmtosgi -{{verbatim|rle}} {{path/to/input.pnm}} > {{path/to/output.sgi}}

Write the specified string into the SGI image header's `imagename` field

pnmtosgi {{[-i|-imagename]}} {{string}} {{path/to/input.pnm}} > {{path/to/output.sgi}}

Context

tldr-pages: common/pnmtosgi

Revisions (0)

No revisions yet.