logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

pnmmargin - add borders to a PNM image

Arguments

pnmfile  is  the  name  of the input file.  If you don't specify this argument, pnmmargin reads the input
       image from its Standard Input.

Author

       Copyright (C) 1991 by Jef Poskanzer.

Description

       This program is part of Netpbm(1).

       pnmmargin adds a border around a PNM image.

Document Source

       This  manual  page was generated by the Netpbm tool 'makeman' from HTML source.  The master documentation
       is at

              http://netpbm.sourceforge.net/doc/pnmmargin.html

netpbm documentation                             10 August 2024                         PnmmarginUserManual(1)

Name

       pnmmargin - add borders to a PNM image

Notes

pnmpad does essentially the same thing, but gives you more control over the individual margins  and  does
       only black and white margins.

       To  remove  a  border  of  a  specified size from an image, usepamcut.  pnmcrop also removes borders, but
       determines by itself what is border and what is subject.

       If you want to make the image a certain required size, adding borders or cropping  as  necessary,  pamcut
       may be what you want.

Options

       In addition to the options common to all programs based on libnetpbm (most notably  -plain,  see   Common
       Options ), pnmmargin recognizes the following command line options:

       You  can  specify  the  border color with the -white, -black, and -color options.  If you don't specify a
       color, the program makes a guess.

       The value of -color is like the argument of the pnm_parsecolor() library routine .

       The -plain common option was implemented beginning with Netpbm version 10.40 (September 2007).

       The -quiet common option is not implemented.

See Also

pamcut(1)

       •      pnmcrop(1)

       •      pamcat(1)

       •      pnmpad(1)

       •      pnm(1)

Synopsis

pnmmargin [-white|-black|-colorcolorspec] size [pnmfile]

See Also