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.1.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for pymage_size-1.7.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2845070d488f2b21b1670fe0bf8a2f84c2c848c24b67dfc4ef7dda3c151f38da |
|
MD5 | 8d4824752c2c92865905dc6d220ac00d |
|
BLAKE2b-256 | 4c3826c671ba984fc08f0883386954e20339d2da7654422aa4d5e9c36d8741b3 |