Linux command
ppmtopj 命令
文本
涉及管道、覆盖或删除,执行前请先确认路径和参数。
常用示例
Convert PPM to HP PaintJet format
ppmtopj [input.ppm] > [output.pj]
Specify gamma correction
ppmtopj -gamma [1.0] [input.ppm] > [output.pj]
Center the image on an 8.5 by 11 page
ppmtopj -center [input.ppm] > [output.pj]
Use run-length encoding
ppmtopj -rle [input.ppm] > [output.pj]
Apply dithering render mode
ppmtopj -render dither [input.ppm] > [output.pj]
说明
ppmtopj reads a PPM image and converts it to HP PaintJet printer format for direct printing. For best results, the input should be in 8-color RGB form (binary combinations of full-on and full-off primaries). Part of the Netpbm toolkit.
参数
- -gamma _val_
- Gamma correction value (default 0).
- -xpos _val_
- Move by val pixels in the x direction.
- -ypos _val_
- Move by val pixels in the y direction.
- -back dark|lite
- Enhance foreground by indicating if background is light or dark.
- -rle
- Run-length encode the image (may result in larger images).
- -center
- Center the image on an 8.5 by 11 page.
- -render _mode_
- Internal rendering algorithm: none, snap, bw, dither (default), diffuse, monodither, monodiffuse, clusterdither, monoclusterdither.
FAQ
What is the ppmtopj command used for?
ppmtopj reads a PPM image and converts it to HP PaintJet printer format for direct printing. For best results, the input should be in 8-color RGB form (binary combinations of full-on and full-off primaries). Part of the Netpbm toolkit.
How do I run a basic ppmtopj example?
Run `ppmtopj [input.ppm] > [output.pj]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -gamma _val_ do in ppmtopj?
Gamma correction value (default 0).