imgspy
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}
>>> with requests.get('http://via.placeholder.com/1920x1080', stream=True) as res:
... imgspy.info(res.raw)
{'type': 'png', 'width': 1920, 'height': 1080}
>>> imgspy.info('/path/to/image.jpg')
{'type': 'jpg', 'width': 420, 'height': 240}
>>> with open('/path/to/image.jpg') as f:
... imgspy.info(f)
{'type': 'jpg', 'width': 420, 'height': 240}
Metadata
Release files for imgspy 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| imgspy-0.2.2.tar.gz | 3.0 kB | Without provenance | Details for imgspy-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| imgspy-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for imgspy-0.2.2-py3-none-any.whl |
Total release size: 6.4 kB
Release files / imgspy-0.2.2.tar.gz
| Download URL | imgspy-0.2.2.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
752486957a9e7160f39a86ff7cf38f0e206aa17cd30f91f93495d6d5eeb8f4dc
|
|
BLAKE2b-256 checksum How to use checksums |
bedfed46fab7a0005abb8d367a861189e8b1735ffa773bc9f5b7c413e1024552
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.3
|
Release files / imgspy-0.2.2-py3-none-any.whl
| Download URL | imgspy-0.2.2-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dfcdcef89521efc01f2e4e1007d19ef9ad83f88541a3794fcae29c1b12c7f6a9
|
|
BLAKE2b-256 checksum How to use checksums |
8cb0ba26341f28b4056d525fc6ec569f539c2ab8020061bc54855a2e4fd67cb8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.3
|
Security for imgspy 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.