A Python package for getting the dimensions of an image without loading it into memory.
Project description
pymage_size
A Python package for getting the dimensions of an image without loading it into memory. No external dependencies either!
Installation
pymage_size is available from PyPI, so you can install via pip
:
$ pip install pymage_size
Usage
from pymage_size import get_image_size
img_format = get_image_size("example.png")
width, height = img_format.get_dimensions()
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
pymage_size-1.6.0.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for pymage_size-1.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9a6a7028087440b34f50abffe9c50d2e426937252e5c5b66a23cf349865f27e |
|
MD5 | cc2cbe4c23440a7dd6ef3d6481a80951 |
|
BLAKE2b-256 | 931f1502df36eeac6b185f4398218180f93d31b25db8cd34177dbcd0db7e0243 |