Create a picture conversion (rendition) using a "smart crop" technique?
We would like to put many of our employee photos into Nuxeo and then create a conversion/rendition of each photo so that the image is square and can be used by multiple third-party systems for profile pages, etc. I know we can leverage ImageMagick to easily make a square rendition, but because the employee photos aren't always centered (or consistent) we are looking for a way to do a smartcrop that will center on the employee and crop from that center point. (Something possibly similar to https://www.npmjs.com/package/smartcrop/v/2.0.2). Has anyone done such a conversion?
It would be really helpful if we could figure out this automation as then the process does not manually have to be done for each employee photo—which is current state. Alternately this may be also helpful for making square thumbnails of any image within Nuxeo with the focus being on the main content of the images.
We have integrated Google Vision and its crop hints capability (https://cloud.google.com/vision/docs/crop-hints) for a PoC. See screenshot. There were no automation behind, but I guess this won't be very difficult.