imghdr

Library that determines the type of image contained in a file or byte stream, basically clone of the Python imghdr module.

Build Status