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

pnmalias - antialias a PNM image

Author

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

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.

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                          PnmaliasUserManual(1)

Name

       pnmalias - antialias a PNM image

Options

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

       -bgcolorcolorb sets the background color the colorb.

       -fgcolorcolorf 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 argument of the pnm_parsecolor() library routine .

       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 neighboring
       background and foreground pixels.

       -weightw says to use w as the central weight for the aliasing filter.  w must be a real  number  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)

Synopsis

pnmalias

       [-bgcolorcolor]

       [-fgcolorcolor]

       [-bonly]

       [-fonly]

       [-balias]

       [-falias]

       [-weightw]

       [pnmfile]

See Also