LinuxCommandLibrary

pnmmargin

Add solid color borders to PNM images

TLDR

Add border around image

$ pnmmargin [10] [input.pnm] > [output.pnm]
copy
Add colored border
$ pnmmargin -color [blue] [20] [input.pnm] > [output.pnm]
copy

SYNOPSIS

pnmmargin [options] size [file]

DESCRIPTION

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.
By default the border color is white. Use -color to specify a custom color, or the shortcuts -white and -black for common choices. This is a convenience wrapper around pnmpad. Part of the Netpbm toolkit.

PARAMETERS

size

Border width in pixels.
-color color
Border color.
-white
White border.
-black
Black border.

SEE ALSO

pnmpad(1), pamcut(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community