LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

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.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.

PARAMETERS

size

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

SEE ALSO

pnmpad(1), pamcut(1), pnmcat(1), pnmcrop(1)

Copied to clipboard
Kai