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

picttoppm — Convert a Macintosh PICT file to a PPM image. More information: <https://netpbm.sourceforge.net/doc/

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

Problem

How to use the picttoppm command: Convert a Macintosh PICT file to a PPM image. More information: <https://netpbm.sourceforge.net/doc/picttoppm.html>.

Solution

picttoppm — Convert a Macintosh PICT file to a PPM image. More information: <https://netpbm.sourceforge.net/doc/picttoppm.html>.

Convert a PICT file to a PPM image:
picttoppm {{path/to/file.pict}} > {{path/to/file.ppm}}


Force any images in the PICT file to be output at full resolution:
picttoppm {{[-fu|-fullres]}} {{path/to/file.pict}} > {{path/to/file.ppm}}


Do not assume that the input file contains a PICT header and execute quickdraw operations only:
picttoppm {{[-n|-noheader]}} {{[-quic|-quickdraw]}} {{path/to/file.pict}} > {{path/to/file.ppm}}

Code Snippets

Convert a PICT file to a PPM image

picttoppm {{path/to/file.pict}} > {{path/to/file.ppm}}

Force any images in the PICT file to be output at full resolution

picttoppm {{[-fu|-fullres]}} {{path/to/file.pict}} > {{path/to/file.ppm}}

Do not assume that the input file contains a PICT header and execute quickdraw operations only

picttoppm {{[-n|-noheader]}} {{[-quic|-quickdraw]}} {{path/to/file.pict}} > {{path/to/file.ppm}}

Context

tldr-pages: common/picttoppm

Revisions (0)

No revisions yet.