Linux command
pnmtotiff 命令
文本
涉及管道、覆盖或删除,执行前请先确认路径和参数。
常用示例
Convert PNM to TIFF
pnmtotiff [input.pnm] > [output.tiff]
Convert with LZW compression
pnmtotiff -lzw [input.pnm] > [output.tiff]
Convert with JPEG compression
pnmtotiff -jpeg [input.pnm] > [output.tiff]
Create multi-page TIFF
pnmtotiff -append [input.pnm] >> [output.tiff]
说明
pnmtotiff converts PNM images to TIFF (Tagged Image File Format), widely used for high-quality image storage and print workflows. Multiple compression methods are supported including LZW, JPEG, PackBits, and Group 3 fax encoding. The -append option allows building multi-page TIFF files by appending images to an existing file. The -resolution option embeds DPI metadata for print sizing. Part of the Netpbm toolkit; superseded by pamtotiff.
参数
- -none
- No compression.
- -lzw
- LZW compression.
- -jpeg
- JPEG compression.
- -packbits
- PackBits compression.
- -g3
- Group 3 fax compression.
- -append
- Append to existing TIFF.
- -resolution _dpi_
- Set resolution.
FAQ
What is the pnmtotiff command used for?
pnmtotiff converts PNM images to TIFF (Tagged Image File Format), widely used for high-quality image storage and print workflows. Multiple compression methods are supported including LZW, JPEG, PackBits, and Group 3 fax encoding. The -append option allows building multi-page TIFF files by appending images to an existing file. The -resolution option embeds DPI metadata for print sizing. Part of the Netpbm toolkit; superseded by pamtotiff.
How do I run a basic pnmtotiff example?
Run `pnmtotiff [input.pnm] > [output.tiff]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -none do in pnmtotiff?
No compression.