Why are my manually edited face coordinates not applied?

Cloudinary enables you to manually edit your image's face coordinates. This can be done by either sending custom face_coordinates via the API, or setting them via the Media Library.

Using a_ignore (to prevent auto-orientation) resets the face information, including the manually edited face coordinates. Therefore, when used together with the g_face transformation, it can cause unexpected behavior. For example, the following image is set with manually edited coordinates:

http://res.cloudinary.com/demo/image/upload/c_thumb,w_100,h_100,g_face/face_smile_vwkdit.jpg

But, when using a_ignore along with the g_face transformation, the result is an incorrectly cropped image:

http://res.cloudinary.com/demo/image/upload/c_thumb,w_100,h_100,g_face,a_ignore/face_smile_vwkdit.jpg

In order to avoid the face information reset, you can chain the a_ignore parameter, as follows:

http://res.cloudinary.com/demo/image/upload/c_thumb,w_100,h_100,g_face/a_ignore/face_smile_vwkdit.jpg

Have more questions? Submit a request

Comments

Powered by Zendesk