@hackage / image-type

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

Latest0.1.0.0

About

Metadata

  • Last updated , by BaldurBlondal
  • License BSD-3-Clause
  • Categories Graphics
  • Maintained by: baldurpet@gmail.com

  • Lottery factor: 0

Links

Installation

Readme

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.