Get face metadata from a transformed image using javascript
Hi all.
I have found various references to APIs which might allow me to do what I'm trying to do but just can't find any examples of how to do it.
I am loading images including transformations (face crop etc) into a react single page app. Here is an example...
So, Cloudinary is doing a great job of cropping with all of the faces in view. The trouble is i really need my app to know where the gravity has been set to include the faces, or where the faces are in the photo. The photo above has most of the faces at the top of the image so my front-end could use that information to position the photo accordingly.
So, is there an api that can be called from front-end javascript (React/NextJs) which would return me all the metadata for the image above (after transformations applied) instead of returning the actual image
Many thanks.
-
Hi Jon,
Currently, we don't have a client-side method with such requirements. That being said, if you have a backend attached to your app you can make use of our Admin API and set the faces parameter to true. For more information please see the following- https://cloudinary.com/documentation/admin_api#details_of_a_single_resource
1
Post is closed for comments.
Comments
1 comment