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.

0 votes

2 answers

151 views

ANSWER



0 votes



Thanks, I'll look at that. Honestly, I tend to forget about external templates, it seems like that area could really be emphasized and expanded.
09/09/2020


Hello,

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.

Regards

0 votes



Okay, that is interesting, and could be helpful. Does that POC require the "Nuxeo Vision" package, or it is something that may be rolled into LTS 2020 (or even something else)? While automation would be the goal, even having the cropping feature in Web UI would be a big step up from the current manual processes that are being done by a few users.
09/09/2020