OPTIMIZE2BW(1)
π optimize2bw β the ExactImage manual, but make it make sense π
okay bestie, sit down, grab a strawberry π, because we're about to talk about optimize2bw, the automatic thresholder from the ExactImage toolkit. she's a section 1 girlie, she lives in your terminal, and she's lowkey iconic for turning your chaotic scans into clean black-and-white archives. no cap. π
β¨ NAME β¨
optimize2bw β the automatic thresholder of the ExactImage toolkit. that's it, that's the whole vibe. π
πΈ SYNOPSIS πΈ
so here's how you call her:
optimize2bw [option...] {-i | --input} input-file
{-o | --output} output-file
optimize2bw --help
basically: give her an input file and an output file, sprinkle in whatever options you want, and she does the thing. and if you're just here to lurk, --help is right there. π«Ά
π¦ DESCRIPTION π¦
ExactImage is a fast C++ image processing library. and the way that it's different from a lot of other library frameworks? she can operate in several color spaces and bit depths natively, which means low memory usage and low computational requirements. it's giving efficient. it's giving mindful. we love a resource-conscious queen. β¨
so optimize2bw reads image files and performs automatic thresholding plus optional scaling on the data. why would you want that, you ask? for long term archiving of documents that have to be stored in sub-byte black and white data, so you can reduce storage requirements. like, she's not just a pretty face β she's the reason your archive of 10,000 scanned documents doesn't eat your entire disk. main character energy, honestly. ππ
π OPTIONS π
here's every single flag she takes, no skipping, no summarising, we're doing this properly:
-ifile,--inputfile β read the image from the specified file. this is your input bestie, the raw material. π-ofile,--outputfile β save the output image to the specified file. this is where the glow-up lands. π-n,--denoiseβ remove ("denoise") single bit pixel noise. little lonely stray pixels? gone. not me sending them to the shadow realm. π-dn,--dpin β scale the image to the specified resolution. set your dpi, get your dpi. π―-hn,--highn β set the high normalization value.-ln,--lown β set the low normalization value.-rn,--radiusn β set the "unsharp mask" radius. the default is0. β-sn,--scalen β set the output scale factor. the default is1.0. π-sdx,--standard-deviationx β set the standard deviation for Gaussian distribution. the default is0.0. π§-tn,--thresholdn β set the threshold value. the default is0. π₯--helpβ display help text and exit. when in doubt, ask the girl herself. π
π EXAMPLES π
look at her go:
$ optimize2bw -i logo.jpg -o logo.tif
Scale: 0
that's it. in goes the logo.jpg, out comes the logo.tif, and she tells you Scale: 0. periodt. β¨
π SEE ALSO π
exactimage(7)β the whole family, go meet the rest of them. π«Ά
π AUTHORS π
- Jakub Wilk
<jwilk@debian.org>β wrote this manual page for the Debian system. thank you for your service, legend. π - https://exactcode.com/opensource/exactimage/ β this manual page incorporates texts found on the ExactImage homepage. π
π COPYRIGHT π
This manual page was written for the Debian system (and may be used by others).
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or (at your option) any later version published by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-2.
okay and that's the whole page, bestie!! π¦ this one's from the ExactImage Manual, page optimize2bw, dated 04/11/2010 β yes she's a 2010 girlie and she still ate. mwah. πβ¨π
π¦ where this page comes from
- debian bookworm: exactimage 1.0.2-11+b2 Β· GPL-2.0-only
- debian trixie: exactimage 1.2.1-2 Β· GPL-2.0-only
- ubuntu jammy: exactimage 1.0.2-8build3 Β· GPL-2.0-only
- ubuntu noble: exactimage 1.0.2-11build9 Β· GPL-2.0-only
- ubuntu questing: exactimage 1.2.1-2
- ubuntu resolute: exactimage 1.2.1-2build2 Β· GPL-2.0-only
- ubuntu stonking: exactimage 1.2.1-3build2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms