@hackage image-type0.1.0.0

Determine the type of an image by reading the first bytes.

A package used to determine the type of an image according to its first bytes based on the Python library imghdr.

Most simplest usage is getting the type of a file:

>>>>>>

Or to test for a specific extension:

>>>>>>>>>

Or to filter files by extension:

>>>>>>>>>>>>>>>

Supports the following extensions: JPEG, PNG, GIF, TIFF, RGB, PBM, PGM, PPM, RAST, XBM, BMP, WebP, EXR.