"Estimates the image type and return a corresponding extension based on file content",
"This function loads the first bytes of the given image, and matches it with known magic numbers of image files. "
"If a match is found, it returns the corresponding image extension (including the leading ``'.'`` that can be used, e.g., in :py:func:`bob.io.image.load`."
)
.add_prototype("image_name","extension")
.add_parameter("image_name","str","The name (including path) of the image to check")
.add_return("extension","str","The extension of the image based on the file content")