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.5.0.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for pymage_size-1.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c074ee56b348275f3ca66bc2a9ffa9ac8aa06a6ee16df6de0e23a18ed060e324 |
|
MD5 | 81b2eb1a58a2ec1dd54ab90e0b1b8d55 |
|
BLAKE2b-256 | a5defe1f0ae7c7fc9a4c8ad022e184b773c242e4d5b412217de7543fbb0d7ea6 |