JBGTOPBM(1)
π NAME π
hiii bestie, welcome to the JBGTOPBM(1) manual page β yes, that's the manual name, and this is literally the jbgtopbm glow-up: it's a JBIG1 to portable bitmap file converter. iconic behavior, no cap.
π SYNOPSIS π
jbgtopbm [ options ] [ input-file | - [ output-file ]]
β¨ DESCRIPTION β¨
okay so picture this: jbgtopbm reads in a JBIG1 bi-level image entity (BIE), decompresses it, and outputs a portable bitmap (PBM) file. slay.
JBIG1 is a highly effective lossless compression algorithm for bi-level images (one bit per pixel), and it's particularly suitable for scanned document pages. literally built for the scanned-doc aesthetic.
A JBIG1 encoded image can be stored in several resolutions in one or several BIEs. All resolution layers except the lowest one are stored efficiently as differences to the next lower resolution layer. the way that's efficient? obsessed.
Options -x and -y can be used to stop the decompression at a specified maximal output image size. With option -m the input file can consist of multiple concatenated BIEs which contain different increasing resolution layers of the same image. multitasking queen.
If more than one bit per pixel is stored in the JBIG1 file, then a PGM file will be produced. plot twist, but make it PGM.
πΈ OPTIONS πΈ
-β a single hyphen instead of an input file name will causejbgtopbmto read the data from standard input instead of from a file. stream it, bestie β¨-xnumber β decode only up to the largest resolution layer that is still not more than number pixels wide. If no such resolution layer exists, then use the smallest one available. width check: passed π-ynumber β decode only up to the largest resolution layer that is still not more than number pixels high. If no such resolution layer exists, then use the smallest one available. Options-xand-ycan also be used together, in which case the largest layer that satisfies both limits will be selected. height check: also passed π«Ά-mβ process multiple concatenated BIEs. If there are bytes left after the finalSDEin the first BIE, then with this optionjbgtopbmwill attempt to decode these as the start of another BIE that may contain higher resolution data. Normally, any remaining bytes will generate a warning message. more BIE, more drama π-bβ use binary values instead of Gray code words in order to decode pixel values from multiple bit planes. This option has only an effect if the input has more than one bit plane and a PGM output file is produced. Note that the decoder has to be used in the same mode as the encoder and cannot determine from the BIE whether Gray or binary code words were used by the encoder. decoder said "i don't know her" π-dβ diagnose a single BIE. With this option,jbgtopbmwill print a summary of the header information found in the input file, followed by a list of allPSCDandESCmarker sequences encountered until the end of the file is reached. detective mode: activated π-pnumber β if the input contains multiple bit planes, then extract only the specified single plane as a PBM file. The first plane has number0. zero-indexed, naturally π
π BUGS π
Using standard input and standard output for binary data works only on systems where there is no difference between binary and text streams (e.g., Unix). On other systems (e.g., Windows), using standard input or standard output may cause control characters likeCRorLFto be inserted or deleted, which will damage the binary data. bestie, do not letCR/LFeat your binary data, i'm begging π
π STANDARDS π
This program implements the JBIG1 image coding algorithm as specified in international standard ISO/IEC 11544:1993 and ITU-T Recommendation T.82(1993). standards? she has them. periodt.
π AUTHOR π
Markus Kuhn wrote JBIG-KIT, which includes jbgtopbm. king behavior, honestly.
π¦ SEE ALSO π¦
mwah π this cute little sign-off is the footer vibe: source/version is the General Commands Manual, dated 2026-10-09, and that's the whole JBGTOPBM(1) situation. xoxo π
π¦ where this page comes from
- arch rolling: jbigkit 2.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms