Photo ID Magick
Python library to automatically align and crop your photos to the correct biometric passport photo size.
This library is based on the libraries face_detection and Pillow.
Installation
$ pip install photoidmagick
Usage
$ photoidmagick -f sample_039.jpg -s 1750x2250
Traceback (most recent call last):
__main__.ObliqueFacePoseException: the midsagittal facial line doesn't intersect the midhorizontal iris line in the middle
$ photoidmagick -f sample_039.jpg -s 350x450 --allow-oblique-face
| Original | Passport Photo Format | Square Photo Format |
|---|---|---|
$ photoidmagick -f sample_054.jpg -s 400x400 --allow-oblique-face
Traceback (most recent call last):
__main__.UnevenlyOpenEyelidException: the right eye is more opened than the left eye
$ photoidmagick -f sample_054.jpg -s 1000x1000 --allow-oblique-face --allow-unevenly-open-eye
| Original | Passport Photo Format | Square Photo Format |
|---|---|---|
Metadata
Release files for photoidmagick 1.1.11
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 |
|---|---|---|---|---|
| photoidmagick-1.1.11.tar.gz | 15.6 kB | Without provenance | Details for photoidmagick-1.1.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| photoidmagick-1.1.11-py3-none-any.whl | Python 3 | none | any | Details for photoidmagick-1.1.11-py3-none-any.whl |
Total release size: 32.3 kB
Release files / photoidmagick-1.1.11.tar.gz
| Download URL | photoidmagick-1.1.11.tar.gz |
|---|---|
| Size | 15.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a2da60f440656dc15e1cc78feaaa9092abe6d4206b7a68f69bcaaba51252dde9
|
|
BLAKE2b-256 checksum How to use checksums |
6be762e7de868c4601df999e2165b313dae95ed06bc0c4a9739b976a0617bc49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.2 CPython/3.10.6 Darwin/22.2.0
|
Release files / photoidmagick-1.1.11-py3-none-any.whl
| Download URL | photoidmagick-1.1.11-py3-none-any.whl |
|---|---|
| Size | 16.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f236df4ba214c8d1dc5c5613d0fb07d6335faefbbf287e0cdb172bb8970f839a
|
|
BLAKE2b-256 checksum How to use checksums |
7416e6021007a890b6451058815dbf59cc8636a30983d2bc11b76d8664abf743
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.2 CPython/3.10.6 Darwin/22.2.0
|
Security for photoidmagick 1.1.11
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.