BBOX(1)
π bbox(1) β the bounding box bestie π
okay so real talk, <rainbow>bbox</rainbow> is that girl who looks at your rawppm or rawpbm image and is like "here's your bounding box, periodt." π she's in section 1 of the manual (iykyk), and she's about to become your new obsession.
β¨ NAME β¨
bbox β prints out the bounding box of a rawppm or rawpbm image π¦
πΈ SYNOPSIS πΈ
bbox [ -l ] [ -r ] [ -h ] [ -V ] [ rawpbmfile ]
π DESCRIPTION π
so <purple>bbox</purple> reads a rawppm or rawpbm file and prints out the bounding box of the image β both as a postscript comment and in postscript points, which is literally 1/72dpi if you were wondering β and it also gives you the high resolution bounding box. no cap. π«Ά
if you don't hand her a filename, she just reads the input from standard input. she's flexible like that. πββοΈ
here's what the output looks like, bestie:
%%BoundingBox: 12 253 829 837
%%HiResBoundingBox: 12.500000 253.000000 828.500000 837.00000
and the way that <purple>bbox</purple> has only very limited memory requirements?? iconic. she reads the input line by line, so she only ever needs to store one picture line in memory at a time. lowkey a queen of efficiency. π
β OPTIONS β
-h,--helpβ shows you a lil summary of the options, because we all need a refresher sometimes. π-Vβ shows the version of the program. slay. π-rβ resolution of picture in dpi. π-lβ the loose bounding box: the integer bounding box gets expanded by 1 point, and the hires bounding box gets expanded by 0.5 points. giving everything a lil breathing room. πΈ
π SEE ALSO π
ps2eps (1)β go say hi to her too. π
π AUTHOR π
bbox was written by Roland Bless. π
π§ ACKNOWLEDGMENTS π§
special thanks goes to Michael Sharpe from UCSD, who suggested a lot of improvements for bbox to become more precise and robust β especially for small drawings. the glow-up was real. β¨
an earlier version of this manual page was originally written by Rafael Laboissiere <rafael@debian.org> for the Debian system. thank you Rafael!! π«Ά permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. π
π BUGS π
okay so the code is pretty small and the probability for bugs is now small, but honestly there may be some left somewhere between the lines. π if you find one, please send a short description with the bbox version number to <roland@bless.de> β and please allow some time to reply, she's busy being a main character. π
bestie pls don't be that person who reports a bug with zero details. include the version number fr fr. π
and that's the whole vibe check! this page is dated January 22, 2004 and lives in section 1 as BBOX(1) β stay iconic, go find some bounding boxes, and remember: limited memory requirements, unlimited slay. π¦β¨π
π¦ where this page comes from
- alpine 3.24: texmf-dist-fontutils-doc 2026.0-r0 Β· LPPL-1.0 AND LPPL-1.1 AND LPPL-1.2 AND LPPL-1.3a AND LPPL-1.3c AND GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms