Linux command
picttoppm 命令
文本
涉及管道、覆盖或删除,执行前请先确认路径和参数。
常用示例
Convert a Macintosh PICT file to PPM
picttoppm [input.pict] > [output.ppm]
Convert with full resolution output
picttoppm -fullres [input.pict] > [output.ppm]
Convert with verbose diagnostic output
picttoppm -verbose [input.pict] > [output.ppm]
Convert a PICT file without the 512-byte header
picttoppm -noheader [input.pict] > [output.ppm]
说明
picttoppm reads a Macintosh PICT file (version 1 or 2) and outputs a PPM image. PICT was the native graphics format on classic Mac OS, encoded in QuickDraw commands. Part of the Netpbm toolkit.
参数
- -verbose _n_
- Print diagnostic information about the PICT file and conversion process. Verbosity level ranges from 0 to 2.
- -fullres
- Force images to retain their full resolution instead of being scaled down. Disables all PICT operations except images.
- -noheader
- Do not assume the first 512 bytes of the file are a header. Useful for PICT data not stored in the data fork of a PICT file.
- -quickdraw
- Execute only pure QuickDraw operations. Disables interpretation of special PostScript printer operations.
- -fontdir _file_
- Specify a file containing BDF fonts for use when drawing text.
FAQ
What is the picttoppm command used for?
picttoppm reads a Macintosh PICT file (version 1 or 2) and outputs a PPM image. PICT was the native graphics format on classic Mac OS, encoded in QuickDraw commands. Part of the Netpbm toolkit.
How do I run a basic picttoppm example?
Run `picttoppm [input.pict] > [output.ppm]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -verbose _n_ do in picttoppm?
Print diagnostic information about the PICT file and conversion process. Verbosity level ranges from 0 to 2.