PNMALIAS(1)

πŸ“¦
version 11.13.03 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’… 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:

  • -bgcolor colorb β€” sets the background color to 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 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 🚧

  • -weight w β€” 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