imghdr
index
/usr/lib/python1.6/imghdr.py

Recognize image file formats based on their first few bytes.

 
Functions
            
test()
test_bmp(h, f)
test_gif(h, f)
GIF ('87 and '89 variants)
test_jpeg(h, f)
JPEG data in JFIF format
test_pbm(h, f)
PBM (portable bitmap)
test_pgm(h, f)
PGM (portable graymap)
test_png(h, f)
test_ppm(h, f)
PPM (portable pixmap)
test_rast(h, f)
Sun raster file
test_rgb(h, f)
SGI image library
test_tiff(h, f)
TIFF (can be in Motorola or Intel byte order)
test_xbm(h, f)
X bitmap (X10 or X11)
testall(list, recursive, toplevel)
what(file, h=None)

 
Data
             __file__ = '/usr/lib/python1.6/imghdr.pyc'
__name__ = 'imghdr'
tests = [<function test_rgb at 825a4c0>, <function test_gif at 825a4f8>, <function test_pbm at 825a518>, <function test_pgm at 825a538>, <function test_ppm at 825a558>, <function test_tiff at 825a578>, <function test_rast at 825a720>, <function test_xbm at 825a740>, <function test_jpeg at 825a760>, <function test_bmp at 825a780>, <function test_png at 825a7a0>]