This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
==========
A pure Python library for reading the width and height of images.
installation
------------
`pip install dimensions`
Done.
usage
-----
For a single image:
> dimensions src/sample.png
src/sample.png
width: 405
height: 239
content_type: image/png
Wildcards also work (escape \* in markdown for PyPi RST...):
> dimensions src/\*.png
src/sample.png
width: 405
height: 239
content_type: image/png
src/sample2.png
width: 473
height: 469
content_type: image/png
As always, full details are available via `dimensions -h`.
In Python code, simply call `dimensions.dimensions`. If you provide a
sequence of filenames, you get back a sequence of tuples; if you provide
just a single filename, you get back a single tuple.
import dimensions
dims = dimensions.dimensions('./src/sample.png')
# (405, 239, 'image/png', './src/sample.png')
future
------
- release newer version to PyPi
Metadata
Release files for dimensions 0.0.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 |
|---|---|---|---|---|
| dimensions-0.0.2.tar.gz | 3.5 kB | Without provenance | Details for dimensions-0.0.2.tar.gz |
Release files / dimensions-0.0.2.tar.gz
| Download URL | dimensions-0.0.2.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
06b7ff50f9dd055531a25a6bf291829176d56af5ff3f8a9ab9d5788e30044df7
|
|
BLAKE2b-256 checksum How to use checksums |
8e0305ba33cce90ef375f4f2aa17cf86cfe27a09665dba3947dd94a457084626
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for dimensions 0.0.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.