plan9 man page for bbox

Query: bbox

OS: plan9

Section: 9

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

BBOX(9.1)																 BBOX(9.1)

NAME
bbox - compute bounding rectangle
SYNOPSIS
fb/bbox [ -s ] [ -cchannel ] [ -vvalue ] [ picture ]
DESCRIPTION
Bbox reads the given picture file (default standard input) and prints on its standard output the minimum bounding box of the interesting pixels of the image. `Interesting' pixels are those for which a given channel, specified by the -c option, does not have a given value, specified by the -v option. -v defaults to 0, and -c defaults to the a channel (letter 'a' in the CHAN= header line) if the image contains one, or the `m' channel otherwise. If the image has neither a nor `m', option -c is not optional. By default, therefore, bbox prints the bounding box of the visible parts of an image with an a channel, or the non-black parts of a monochrome image. Option -s causes bbox to instead copy its input to standard output, clipping the image to the bounding rectangle.
SOURCE
/sys/src/fb/bbox.c
SEE ALSO
picfile(9.6) BBOX(9.1)
Related Man Pages
epsffit(1) - redhat
epsffit(1) - centos
imagettfbbox(3) - php
imageftbbox(3) - php
imagepsbbox(3) - php
Similar Topics in the Unix Linux Community
Autosys
Grabbing data between 2 points in text file
Problem with a lp from UNIX
Using sed to delete one regular pattern with conditions