1. NAME

pnmpad - add borders to portable anymap

2. SYNOPSIS

pnmpad [ -verbose ] [ -white | -black ]
[[[ -width=\fIwidth [ -halign=\fIratio ]] |
" [" -left=\fIleftpad ] [ -right=\fIrightpad ]]]
[[[ -height=\fIheight [ -valign=\fIratio ]] |
" [" -top=\fItoppad ] [ -bottom=\fIbotpad ]]]
[ pnmfile ] All options can be abbreviated to their shortest unique prefix. You may use two hyphens instead of one to designate an option. You may use either white space or an equals sign between an option name and its value.

3. DESCRIPTION

Reads a PNM image as input. Outputs a PNM image that is the input image plus black or white borders of the sizes specified. If you just need to convert an image to a certain size regardless of the original dimensions,

pnmcut with the

-pad option may be a better choice.

4. OPTIONS

-verbose Verbose output.

-white

R -black Set pad color. -left leftpad
-right rightpad
-top toppad
-bottom bottompad Specify amount of padding in pixels. -width width Set desired width of image. Overrides

R -left widthis less than the actual image width, it is ignored. Use

R pnmcut (1) to cut off parts of images. -height height Set desired height of image. Overrides

R -top heightis less than the actual image height, it is ignored. Use

R pnmcut (1) to cut off parts of images. -halign ratio A real number between 0 and 1. Used in conjunction with

R -width padding and right padding. Useful values:

0.0

    - left aligned;

0.5

    - center aligned (default);

1.0

    - right aligned. -valign ratio A real number between 0 and 1. Used in conjunction with

R -height padding and top padding. Useful values:

0.0

    - bottom aligned;

0.5

    - center aligned (default);

1.0

    - top aligned.

5. HISTORY

  • Before February 2002,
        .B pnmpad had a different option syntax which was less expressive and not like conventional Netpbm programs. That syntax is still understood by

R pnmpad for backward compatibility, but not documented or supported for future use.

6. SEE ALSO

R pbmmake (1),

R pnmpaste (1),

R pnmcut (1),

R pnmcrop (1),

R pbm (5)

7. AUTHOR

Copyright (C) 2002 by Martin van Beilen
Copyright (C) 1990 by Angus Duggan
Copyright (C) 1989 by Jef Poskanzer. Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. This software is provided "as is" without express or implied warranty.