Linux command
ppmmake 命令
文本
涉及管道、覆盖或删除,执行前请先确认路径和参数。
常用示例
Create solid color image
ppmmake [color] [width] [height] > [output.ppm]
Create red image
ppmmake red 100 100 > [red.ppm]
Create using RGB values
ppmmake "rgb:ff/00/00" 200 200 > [output.ppm]
说明
ppmmake creates a PPM image of the specified dimensions filled with a single solid color. Colors can be specified by name (red, blue, white), hex notation (#rrggbb), or RGB triplet format (rgb:rr/gg/bb). This is useful for creating background images, test patterns, or blank canvases for compositing with other Netpbm tools. The companion tools pgmmake and pbmmake create grayscale and bitmap images respectively. Part of the Netpbm toolkit.
参数
- -maxval _val_
- Maximum color component value in the output image (default 255).
FAQ
What is the ppmmake command used for?
ppmmake creates a PPM image of the specified dimensions filled with a single solid color. Colors can be specified by name (red, blue, white), hex notation (#rrggbb), or RGB triplet format (rgb:rr/gg/bb). This is useful for creating background images, test patterns, or blank canvases for compositing with other Netpbm tools. The companion tools pgmmake and pbmmake create grayscale and bitmap images respectively. Part of the Netpbm toolkit.
How do I run a basic ppmmake example?
Run `ppmmake [color] [width] [height] > [output.ppm]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -maxval _val_ do in ppmmake?
Maximum color component value in the output image (default 255).