snippetbashTip
pnmalias — Apply antialiasing onto a PNM image. More information: <https://netpbm.sourceforge.net/doc/pnmalias.
Viewed 0 times
ontocommandapplycliimageantialiasingpnmaliaspnm
Problem
How to use the
pnmalias command: Apply antialiasing onto a PNM image. More information: <https://netpbm.sourceforge.net/doc/pnmalias.html>.Solution
pnmalias — Apply antialiasing onto a PNM image. More information: <https://netpbm.sourceforge.net/doc/pnmalias.html>.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}}Code Snippets
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}}Context
tldr-pages: common/pnmalias
Revisions (0)
No revisions yet.