← 返回命令列表

Linux command

pnmmargin 命令

文本

涉及管道、覆盖或删除,执行前请先确认路径和参数。

常用示例

Add border around image

pnmmargin [10] [input.pnm] > [output.pnm]

Add colored border

pnmmargin -color [blue] [20] [input.pnm] > [output.pnm]

说明

pnmmargin adds a uniform solid-color border around all four sides of a PNM image. The border width is specified in pixels and is applied equally on all sides. If no color option is specified, the program makes a guess. Use -color to specify a custom color, or the shortcuts -white and -black for common choices. This is a convenience wrapper around pnmpad. For different margins on each side, use pnmpad directly. To remove borders, use pamcut. Part of the Netpbm toolkit.

参数

-color _color_
Border color.
-white
White border.
-black
Black border.
-plain
Produce output in plain PNM format.

FAQ

What is the pnmmargin command used for?

pnmmargin adds a uniform solid-color border around all four sides of a PNM image. The border width is specified in pixels and is applied equally on all sides. If no color option is specified, the program makes a guess. Use -color to specify a custom color, or the shortcuts -white and -black for common choices. This is a convenience wrapper around pnmpad. For different margins on each side, use pnmpad directly. To remove borders, use pamcut. Part of the Netpbm toolkit.

How do I run a basic pnmmargin example?

Run `pnmmargin [10] [input.pnm] > [output.pnm]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -color _color_ do in pnmmargin?

Border color.