Python library to detect image type from a few bytes
Project description
whatimage
Python library to detect image type from a few bytes
Installation
pip install whatimage
Usage
import whatimage
with open('image.jpg', 'rb') as f:
data = f.read()
fmt = whatimage.identify_image(data)
print(fmt)
'jpeg'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
whatimage-0.0.2.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for whatimage-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 738852e6f22eee340ffa9f0ab9df6c376f4f15adf26e4e915cc61007a5a24edd |
|
MD5 | d4b81b17fcc8d0b06f1eae537cdde396 |
|
BLAKE2b-256 | 4086f38feb0687886f628375def58deb0d5bf1475a4f191ec1f71706ff0d03f3 |