Skip to main content

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

Project description

pymage_size

Downloads

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


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.7.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pymage_size-1.7.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file pymage_size-1.7.1.tar.gz.

File metadata

  • Download URL: pymage_size-1.7.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.0 Linux/5.15.0-1031-azure

File hashes

Hashes for pymage_size-1.7.1.tar.gz
Algorithm Hash digest
SHA256 175f9dad45794d4be60200101f36117390e52107bb30bc2b81dbeb61f6c277d6
MD5 ce9994d9bcb8602766c4771fccf94495
BLAKE2b-256 bb0ab95a6af78d153279a3f94d9c1e73a40819e22f05bc2139bb950f16474725

See more details on using hashes here.

File details

Details for the file pymage_size-1.7.1-py3-none-any.whl.

File metadata

  • Download URL: pymage_size-1.7.1-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.0 Linux/5.15.0-1031-azure

File hashes

Hashes for pymage_size-1.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2845070d488f2b21b1670fe0bf8a2f84c2c848c24b67dfc4ef7dda3c151f38da
MD5 8d4824752c2c92865905dc6d220ac00d
BLAKE2b-256 4c3826c671ba984fc08f0883386954e20339d2da7654422aa4d5e9c36d8741b3

See more details on using hashes here.

Supported by

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