Lightning-fast extraction of image dimensions & bit depth. Tested on Python 3.8+ and Ubuntu 22.04.
Supports PGM / PPM / PNM / PFM / PNG / BMP / JPG / TIFF / INSP / EXR / HDR / DNG / CR2 / NEF / RAW / NPY.
Installing on Linux:
pip install imsize
Documentation:
pydoc imsize
Command-line usage:
imsize --help
Building & installing from source:
make install
Building & releasing to PyPI:
make release