
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-09-2020 01:53 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-09-2020 02:54 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-09-2020 02:43 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-09-2020 02:59 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-09-2020 02:54 PM
I forgot about https://doc.nuxeo.com/studio/default-configuration-templates/#image-cropper 🙂

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-09-2020 03:03 PM
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.
