img_bbox.pl is a standalone Perl script that can
extract file format, width, height, bounding box,
and other meta-information from image files.
Supported vector formats are PDF, Flash SWF, EPS,
PS, DVI, and FIG. Supported raster image formats
are GIF, JPEG, PNG, TIFF, XPM, XBM1, XBM, PNM,
PBM, PGM, PPM, PCX, LBM, other IFF, Windows and
OS/2 BMP, MIFF, Gimp XCF, Windows ICO, Adobe PSD,
FBM, SunRaster, CMUWM, Utah RLE, Photo CD PCD,
XWD, GEM, McIDAS, PM, SGI IRIS, FITS, VICAR, PDS,
FIT, Fax G3, Targa TGA, and Faces.