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.

Files for pymage-size, version 1.4.1
Filename, size File type Python version Upload date Hashes
Filename, size pymage_size-1.4.1-py3-none-any.whl (3.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pymage_size-1.4.1.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View

Supported by

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