PBMREDUCE(1)
β¨ pbmreduce β the Pbmreduce User Manual, bestie edition β¨
okay so welcome to Pbmreduce User Manual(1), the glow-up guide π
this is a General Commands Manual moment and honestly? iconic.
πΈ NAME πΈ
pbmreduce β read a PBM image and reduce it N times π¦
π SYNOPSIS π
pbmreduce [-floyd|-fs|-threshold] [-value val] [-randomseed=integer] N
[pbmfile]
also, PSA: you can abbreviate any option to its shortest unique prefix. yes fr, go off king π
β¨ DESCRIPTION β¨
so first things first: this program is part of Netpbm(1). family reunion π«Ά
pbmreduce reads a PBM image as input and reduces it by a factor of N, producing a PBM image as output. in and out, PBM to PBM, no drama.
ngl, pbmreduce duplicates a lot of the functionality of pamditherbw. like you could do something like pamscale | pamditherbw, but pbmreduce is a lot faster. speed. it's giving main character energy β‘
here's the fun part: you can use pbmreduce to "re-halftone" an image. let's say you have a scanner that only produces black&white, not grayscale, and it does a terrible job of halftoning (most b&w scanners fit this description, unfortunately π). one way to fix the halftoning is to scan at the highest possible resolution, say 300 dpi, and then reduce by a factor of three or so using pbmreduce. you can even correct the brightness of an image, by using the -value option. obsessed π₯°
π OPTIONS π
so in addition to the options common to all programs based on libnetpbm (most notably -quiet, see Common Options), pbmreduce recognizes the following command line options:
-thresholdβ by default,pbmreducedoes the halftoning after the reduction via boustrophedonic Floyd-Steinberg error diffusion; but you can use this option to specify simple thresholding instead. this gives better results when reducing line drawings. use it for those βοΈ moments.-floyd,-fsβ specify the Floyd-Steinberg error diffusion method. this is the default, bestie. it's just built different.-valueβ this option alters the thresholding value for all quantizations. it should be a real number between0and1. above0.5means darker images; below0.5means lighter. so like, turn the dial, no cap ποΈ-randomseed=integerβ this is the seed for the random number generator that controls the halftoning. use this to ensure you get the same image on separate invocations. reproducibility slay π₯
this option was new in Netpbm 10.75 (June 2016). a little baby option, we love her π
π¦ SEE ALSO π¦
pamenlarge(1), pamscale(1), pamditherbw(1), pbm(1)
go read those too, they're the friend group π
π AUTHOR π
Copyright (C) 1988 by Jef Poskanzer. legend behaviour, we respect it π
π 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/pbmreduce.html
and that's the whole page bestie π«Ά this was netpbm documentation, dated 13 April 2016, and it's still giving Pbmreduce User Manual(1) energy. mwah π go reduce something β¨
π¦ 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