Skip to main content

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


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.3.1.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

pymage_size-1.3.1-py2.py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page