Skip to main content

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)

Source distribution for photoidmagick 1.1.11
File Size Uploaded
photoidmagick-1.1.11.tar.gz 15.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for photoidmagick 1.1.11
File Interpreter ABI Platform
photoidmagick-1.1.11-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.1.11 This release

2 release files

1.1.10

2 release files

1.1.9

2 release files

1.1.8

2 release files

1.1.7

2 release files

1.1.6

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page