Menu

Post image 1
Post image 2
1 / 2
0

I open-sourced passport photo specs for 100 countries (MIT, JSON, public API)

DEV Community·whitetirocket·19 days ago
#GXe1vNKN
#opensource#webdev#api#specs#passport#country
Reading 0:00
15s threshold

I open-sourced passport photo specs for 100 countries (MIT, JSON, public API) If you have ever built anything that touches passport or visa photos, you know the boring part is not the face detection or the background segmentation. It is the country specifications. Every country has slightly different size. Different background color. Different file size cap on the upload portal. A different head-height ratio. The documentation is scattered across consulate websites in 12 languages, half of which 404 every six months. I have been maintaining this dataset for a year while building IDPhotoSnap , a free browser-only passport photo tool. Last week I published the whole thing as an open repository at github.com/whitetirocket/passport-photo-specs . MIT licensed. JSON, TypeScript, and Python bindings. 100 countries. 248 document formats. Public HTTP API at idphotosnap.com/api/specs with no auth and CORS open.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More