Python imghdr Functions

EditRocket provides the following information on imghdr functions in the Python source code builder.

what(filename[, h]) - Tests the image data contained in the file named by filename, and returns a string describing the image type.