Linux command
ppmtoicr 命令
文本
涉及管道、覆盖或删除,执行前请先确认路径和参数。
常用示例
Convert PPM to NCSA ICR format
ppmtoicr [input.ppm] > [output.icr]
Convert with a custom window name
ppmtoicr -windowname [myimage] [input.ppm] > [output.icr]
Convert with pixel expansion factor
ppmtoicr -expand [2] [input.ppm] > [output.icr]
Read from stdin via pipe
cat [input.ppm] | ppmtoicr > [output.icr]
说明
ppmtoicr reads a PPM image and converts it to NCSA ICR (Image Capture Raster) format. The ICR format was used by NCSA Telnet to display raster images in an X11 window on a remote display. The output is written to standard output. Part of the Netpbm toolkit. If no input file is specified, the image is read from standard input.
参数
- -windowname _name_
- Set the name of the window in the ICR output. Default is "untitled".
- -expand _n_
- Expand each pixel by factor _n_. Each pixel becomes an _n_ x _n_ block of pixels. Default is 1 (no expansion).
- -rle
- Use run-length encoding compression in the output.
FAQ
What is the ppmtoicr command used for?
ppmtoicr reads a PPM image and converts it to NCSA ICR (Image Capture Raster) format. The ICR format was used by NCSA Telnet to display raster images in an X11 window on a remote display. The output is written to standard output. Part of the Netpbm toolkit. If no input file is specified, the image is read from standard input.
How do I run a basic ppmtoicr example?
Run `ppmtoicr [input.ppm] > [output.icr]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -windowname _name_ do in ppmtoicr?
Set the name of the window in the ICR output. Default is "untitled".