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.7.0.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for pymage_size-1.7.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f27b74cc359299c151f2f3fe2713f1d8734b7b2130a1725e46069d61e870d133 |
|
MD5 | f7275e57c2f85bda282a1b6bd7a0982b |
|
BLAKE2b-256 | f610353cd2d2af4664604912b1719e996400dc942d19d130872aaa28366aae33 |