PNMALIAS(1)
π pnmalias β the manual page, but make it a group chat
okay so bestie, welcome to pnmalias, part of the Pnmalias User Manual (section 1, General Commands Manual, if you're keeping score π). This is the glow-up tool for your PNM pics and I'm obsessed.
β¨ NAME β¨
pnmalias β antialias a PNM image π¦
πΈ SYNOPSIS πΈ
pnmalias
[-bgcolor color]
[-fgcolor color]
[-bonly]
[-fonly]
[-balias]
[-falias]
[-weight w]
[pnmfile]
π DESCRIPTION π
Hiii so first things first: this program is part of Netpbm(1). Family reunion, iconic.
pnmalias reads a PNM image as input and applies anti-aliasing to background and foreground pixels. That's the whole vibe. Soft edges, no jagged nonsense, main character energy only β¨
And here's the plot twist π β 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. Like, it literally announces the glow-up. Communication queen fr fr π
π OPTIONS π
So 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 to 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 the foreground color to be white. Classic. The moment. π€π€
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. Yep, the red one. Just the red one. iykyk π
-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. Boundaries only, bestie. Respect the border π§
-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. Lower = blurrier, so if blurry is the assignment, you know what to do π
π«Ά SEE ALSO π«Ά
pbmtext(1), pnmsmooth(1), pnm(1) β go read those too, they're giving supportive bestie energy β
π AUTHOR π
Copyright (C) 1992 by Alberto Accomazzi, Smithsonian Astrophysical Observatory. We stan a legend π
π 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
and that's the whole thing, bestie π this was netpbm documentation, dated 15 March 2004, straight out of the Pnmalias User Manual(1). no cap, go antialias something pretty. periodt π β¨
π¦ where this page comes from
- debian bookworm: netpbm 2:11.01.00-2 Β· MIT
- debian trixie: netpbm 2:11.10.02-1 Β· MIT
- ubuntu noble: netpbm 2:11.05.02-1.1build1 Β· MIT
- ubuntu resolute: netpbm 2:11.10.02-1build1 Β· MIT
- ubuntu stonking: netpbm 2:11.13.03+ds-2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms