man > pnmalias(1)

TLDR: pnmalias (tldr-pages)

Apply antialiasing onto a PNM image.

  • Perform antialiasing on a PNM image, taking black pixels as background and white pixels as foreground
    pnmalias {{path/to/input.pnm}} > {{path/to/output.ppm}}
  • Explicitly specify the background and foreground color
    pnmalias -bcolor {{background_color}} -fcolor {{foreground_color}} {{path/to/input.pnm}} > {{path/to/output.ppm}}
  • Apply altialiasing to foreground pixels only
    pnmalias {{-fo|-fonly}} {{path/to/input.pnm}} > {{path/to/output.ppm}}
  • Apply antialiasing to all surrounding pixels of background pixels
    pnmalias {{-ba|-balias}} {{path/to/input.pnm}} > {{path/to/output.ppm}}
Pnmalias User Manual(1)                General Commands Manual               Pnmalias User Manual(1)

NAME
       pnmalias - antialias a PNM image


SYNOPSIS
       pnmalias

       [-bgcolor color]

       [-fgcolor color]

       [-bonly]

       [-fonly]

       [-balias]

       [-falias]

       [-weight w]

       [pnmfile]


DESCRIPTION
       This program is part of Netpbm(1).

       pnmalias  reads  a PNM image as input, and applies anti-aliasing to background and foreground
       pixels.  If the input file is a PBM, pnmalias promotes the output  anti-aliased  image  to  a
       PGM, and prints a message informing the user of the change in format.


OPTIONS
       In  addition  to  the options common to all programs based on libnetpbm (most notably -quiet,
       see ]8;;index.html#commonoptions\ Common Options]8;;\ ), pnmalias recognizes the following command line options:

       -bgcolor colorb sets the background color the colorb.

       -fgcolor colorf sets the foreground color to colorf.

       Pixels with these values will be anti-aliased.  By default,  pnmalias  takes  the  background
       color to be black, and foreground color to be white.

       Specify  the color (color) as described for the ]8;;libnetpbm_image.html#colorname\argument of the pnm_parsecolor() library rou‐
       tine]8;;\ .

       Note that even when dealing with PGMs, background and foreground colors need to be  specified
       in  the  fashion described above.  In this case, pnmalias takes the background and foreground
       pixel values to be the value of the red component for the specified color.

       -bonly says to apply anti-aliasing only to the background pixels.

       -fonly says to apply anti-aliasing only to the foreground pixels.

       -balias says to apply anti-aliasing to all pixels surrounding background pixels.

       -falias says to apply anti-aliasing to all pixels surrounding foreground pixels.

       If you specify neither -balias nor -falias, pnmalias applies anti-aliasing only among  neigh‐
       boring background and foreground pixels.

       -weight w says to use w as the central weight for the aliasing filter.  w must be a real num‐
       ber in the range 0 < w < 1.  The lower the value of w is, the "blurrier" the output image is.
       The default is w = 1/3.


SEE ALSO
       pbmtext(1), pnmsmooth(1), pnm(1)


AUTHOR
       Copyright (C) 1992 by Alberto Accomazzi, Smithsonian Astrophysical Observatory.

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/pnmalias.html

netpbm documentation                        15 March 2004                    Pnmalias User Manual(1)
pnmalias(1)
NAME SYNOPSIS
pnmalias
DESCRIPTION OPTIONS
-bgcolor colorb sets the background color the colorb. -fgcolor colorf sets the foreground color to colorf. -bonly says to apply anti-aliasing only to the background pixels. -fonly says to apply anti-aliasing only to the foreground pixels. -balias says to apply anti-aliasing to all pixels surrounding background pixels. -falias says to apply anti-aliasing to all pixels surrounding foreground pixels. -weight w says to use w as the central weight for the aliasing filter. w must be a real num‐
SEE ALSO AUTHOR DOCUMENT SOURCE

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-03 17:06 @216.73.217.101
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!

^_top_^