Skip to main content

Find the size or type of the image without fetching the whole content.

Project description

imgspy finds the metadata (type, size) of an image given its url by fetching as little as needed. This is a python implementation of fastimage. Supports image types BMP, CUR, GIF, ICO, JPEG, PNG, PSD, TIFF, WEBP.

usage

>>> imgspy.info('http://via.placeholder.com/1920x1080')
{'type': 'png', 'width': 1920, 'height': 1080}
>>> imgspy.info('/path/to/image.jpg')
{'type': 'jpg', 'width': 420, 'height': 240}

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

imgspy-0.2.0.tar.gz (2.8 kB view details)

Uploaded Source

File details

Details for the file imgspy-0.2.0.tar.gz.

File metadata

  • Download URL: imgspy-0.2.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for imgspy-0.2.0.tar.gz
Algorithm Hash digest
SHA256 2e057c5e6926798bf3a402324f808daa73d64cdd13df6ed87e9cc6fc64101f3d
MD5 3898ce41e61f4b3b6bfd80cb63b526e3
BLAKE2b-256 81e87aaddb0e1518b06d3385eac5ffd0d2ca1ead128cfc5ceb043b71e445ab42

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