Plugged it in to their machine, trimmed and printed it out. That’s where I got the idea to try it here. Was good enough for a United States passport at least. Here is the link to an app for Apple products that is made to take and trim passport photos – there are equivalents on Android as well.
https://www.expat.com/en/forum/middle-east/bahrain/444297-passport-photos.html