PPMDITHER(1)

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

✨ 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, and power is literally that power of 2. Default is 4, 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 of 2. Default is 5.
  • -green n β€” the number of green shades to use, including black. Minimum of 2. Default is 9.
  • -blue n β€” the number of blue shades to use, including black. Minimum of 2. Default is 5.
heads up bestie: that "including black" thing applies to -red, -green, AND -blue. so like, 2 is 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