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!
Disclaimer
This library is currently in Beta. This means that the interface might change and that not all possible edge cases have been properly tested.
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.4.1.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for pymage_size-1.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 788e86c570a94eb2afb8f2b6225288b837df8c3fe27f704baf828dc7fdf93470 |
|
MD5 | ba2c896fcb736b335b537fe8e64590d0 |
|
BLAKE2b-256 | d545da5490726af64f1ddacf868ce8079dcc8b954c541b7544607f4d78bf862c |