commands.sh

pnmalias

all

Apply antialiasing onto a PNM image.

More info →

Options (2)

boolean

Apply altialiasing to foreground pixels only

Example: pnmalias {{[-fo|-fonly]}} {{path/to/input.pnm}} > {{path/to/output.ppm}}
boolean

Apply antialiasing to all surrounding pixels of background pixels

Example: pnmalias {{[-ba|-balias]}} {{path/to/input.pnm}} > {{path/to/output.ppm}}

Examples (4)

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
made by @shridhargupta | data from tldr-pages