💾 Archived View for tris.fyi › pydoc › imghdr captured on 2022-03-01 at 15:54:42. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2022-01-08)
-=-=-=-=-=-=-
Recognize image file formats based on their first few bytes.
Abstract base class for implementing the file system path protocol.
test()
test_bmp(h, f)
test_exr(h, f)
test_gif(h, f) GIF ('87 and '89 variants)
test_jpeg(h, f) JPEG data in JFIF or Exif 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_webp(h, f)
test_xbm(h, f) X bitmap (X10 or X11)
testall(list, recursive, toplevel)
what(file, h=None)
tests = [<function test_jpeg at 0x7f022526d5e0>, <function test_png at 0x7f022526d670>, <function test_gif at 0x7f022526d820>, <function test_tiff at 0x7f022526d8b0>, <function test_rgb at 0x7f022526d940>, <function test_pbm at 0x7f022526d9d0>, <function test_pgm at 0x7f022526da60>, <function test_ppm at 0x7f022526daf0>, <function test_rast at 0x7f022526db80>, <function test_xbm at 0x7f022526dc10>, <function test_bmp at 0x7f022526dca0>, <function test_webp at 0x7f022526dd30>, <function test_exr at 0x7f022526ddc0>]