EMPTY-PAGE(1)
π EMPTY-PAGE π
okay bestie, so this is empty-page from the ExactImage Manual (section 1, the big leagues π
) β a tiny little utility that looks at a scan and goes "hmm, is this page literally blank or not?" and honestly? she ate.
β¨ NAME β¨
empty-page β the empty page detector of the ExactImage toolkit π΅οΈβοΈ
πΈ SYNOPSIS πΈ
empty-page [option...] {-i | --input} input-file
empty-page {-h | --help}
like, you give her an image, she tells you if it's empty. that's it. that's the whole job. iconic behavior fr fr.
π¦ DESCRIPTION π¦
ExactImage is a fast C++ image processing library β‘ and no cap, unlike a lot of other library frameworks out there, it lets you operate in several color spaces and bit depths natively β which means low memory usage and low computational requirements. she's efficient. she's mindful. she's not gonna make your poor little laptop cry π
so here's what empty-page does: she counts the dark pixels of a black and white image, and then decides β using a threshold β whether the page is most probably empty, and thus can be removed from the image processing stream. bye bye blank page, you will not be missed π
β¨ OPTIONS β¨
-ifile,--inputfile β read the image from the specified file. this is the one she actually needs, bestie.-mn,--marginn β set the width of the border margin to skip. β οΈ for speed reasons, the margin has to be a multiple of 8. the default is16.-px,--percentagex β set the fraction of permissible dark pixels. the default is0.05(that's 5% for the non-math girlies π ).-h,--helpβ display the help text and exit. she's helpful like that π«Ά
π EXAMPLES π
okay watch this:
$ empty-page -i test.tif
The image has 75461 dark pixels from a total of 1060992 (7.11231%).
non-empty
the way she just told us the exact numbers... 75461 dark pixels out of 1060992, that's 7.11231%, and the verdict is non-empty. periodt. π
π EXIT STATUS π
- the exit status is
0if the image is mostly white β 1otherwise β
iykyk, that's your script's cue.
π SEE ALSO π
exactimage(7)β go read her sibling, she's also great
π AUTHORS π
- Jakub Wilk
<jwilk@debian.org>β wrote this manual page for the Debian system. thank you king π«‘ 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.
and that's the whole page, bestie!! β¨ this one's from the empty-page manpage, dated 04/11/2010, living in the ExactImage Manual β go forth and detect those empty pages, 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