Passport Photo Maker creates passport and visa photos at the correct size from any photo, ready to save, share or print.
Kotlin, Google ML Kit Selfie Segmentation (on-device), FileProvider.
Complete and installable as an Android app. Not yet published on Google Play.