tangent:
I wrote this: https://github.com/jftuga/photo_id_resizer
This program is used to resize large photo ID images. When image resizing occurs, a content aware image resizing library is used with its face detection algorithm to avoid face deformation.