Skip to main content

A Python package for getting the dimensions of an image without loading it into memory.

Project description

pymage_size

CircleCI Downloads

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

Uploaded source

Built Distribution

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

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page