'\" t
.\" Title: bbox
.\" Author: Roland Bless
.\" Generator: DocBook XSL Stylesheets vsnapshot
.\" Date: January 22, 2004
.\" Manual: PS2EPS
.\" Source: PS2EPS 1.68
.\" Language: English
.\"
.TH "BBOX" "1" "January 22, 2004" "PS2EPS 1\&.68" "PS2EPS"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
bbox \- prints out the bounding box of a rawppm or rawpbm image
.SH "SYNOPSIS"
.HP \w'\fBbbox\fR\ 'u
\fBbbox\fR [\fB\-l\fR] [\fB\-r\fR] [\fB\-h\fR] [\fB\-V\fR] [\fIrawpbmfile\fR]
.SH "DESCRIPTION"
.PP
\fBbbox\fR
reads a rawppm or rawpbm file and prints out the bounding box of the image (as postscript comment and in postscript points, i\&.e\&. 1/72dpi) as well as the high resolution bounding box\&. Input is read from standard input if no filename is specified\&. Example output:
.sp
.if n \{\
.RS 4
.\}
.nf
%%BoundingBox: 12 253 829 837
%%HiResBoundingBox: 12\&.500000 253\&.000000 828\&.500000 837\&.00000
.fi
.if n \{\
.RE
.\}
.PP
\fBbbox\fR
has only very limited memory requirements as it reads the input line by line and thus needs to store only one picture line in memory\&.
.SH "OPTIONS"
.PP
\fB\-h | \-\-help\fR
.RS 4
Show summary of options\&.
.RE
.PP
\fB\-V\fR
.RS 4
Show version of program\&.
.RE
.PP
\fB\-r\fR
.RS 4
resolution of picture in dpi
.RE
.PP
\fB\-l\fR
.RS 4
loose bounding box (integer bounding box is expanded by 1 point, hires bounding box is expanded by 0\&.5 points)
.RE
.SH "SEE ALSO"
.PP
ps2eps (1)
.SH "AUTHOR"
.PP
\fBbbox\fR
was written by Roland Bless\&.
.SS "ACKNOWLEDGMENTS"
.PP
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\&.
.PP
An earlier version of this manual page was originally written by Rafael Laboissiere
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\&.
.SH "BUGS"
.PP
Though the code is quite small and the probability for bugs is now small, there may be some left somewhere between the lines\&. In case you find one, please send a short description with
\fBbbox\fR
version number to
(please allow some time to reply)\&.
.SH "AUTHOR"
.PP
\fBRoland Bless\fR
.RS 4
Author.
.RE
.SH "COPYRIGHT"
.br
Copyright \(co 2003 Roland Bless
.br