PPMDITHER(1)
β¨ NAME β¨
ppmdither β ordered dithering but make it fashion π
for color images
πΈ SYNOPSIS πΈ
ppmdither
[-dim=power]
[-red=n]
[-green=n]
[-blue=n]
[netpbmfile]
okay bestie, quick housekeeping before we start π«Ά
- Every option can be shortened to its shortest unique prefix β no need to type the whole thing, she's not gonna make you.
- You can use two hyphens instead of one if that's your vibe.
- Between an option name and its value you can put either white space or an equals sign β both slay.
π¦ DESCRIPTION π¦
This program is part of Netpbm(1). Iconic family, no notes. π
ppmdither reads a Netpbm image as input and applies dithering to it, reducing the number of colors down to however many shades you asked for for each primary. Out comes a PPM image. That's the whole glow-up. β¨
The default number of shades is 5 red, 9 green, and 5 blue β that's 225 colors total, for real. And if your goal is converting an image into a binary rgb format that plays nice with primitive color printers? Say less: use -red=2 -green=2 -blue=2 and you're done. π¨οΈ
And listen β if you want a different kind of dither, the Floyd-Steinberg kind, you can get that with pnmquant or pnmremap. Different tool, different serve. πββοΈ
π OPTIONS π
On top of the options that are common to all programs based on libnetpbm β most notably -quiet, peep the Common Options section β ppmdither also recognizes these command line options:
-dim powerβ the size of the dithering matrix. The matrix is a square whose dimension is a power of 2, andpoweris literally that power of 2. Default is4, which gives you a 16 by 16 matrix. it's giving math but cute π-red=nβ the number of red shades to use, including black. Minimum of2. Default is5.-green nβ the number of green shades to use, including black. Minimum of2. Default is9.-blue nβ the number of blue shades to use, including black. Minimum of2. Default is5.
heads up bestie: that "including black" thing applies to-red,-green, AND-blue. so like,2is the floor for each of them. don't come for me. π
π SEE ALSO π
pamditherbw(1), pamdepth(1), pnmquant(1), pnmremap(1), ppm(1)
the whole friend group honestly, all of them ate π«Ά
π AUTHOR π
Copyright (C) 1991 by Christos Zoulas.
periodt. π
π DOCUMENT SOURCE π
This manual page was generated by the Netpbm tool makeman from HTML source. The master documentation lives at
http://netpbm.sourceforge.net/doc/ppmdither.html
okay and that's a wrap on the Ppmdither User Manual from the General Commands Manual section, brought to you by netpbm documentation, dated 16 December 2009. β¨ go dither something gorgeous, bestie πΈπ¦π
π¦ 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