Cloudinary enables you to manually edit your image's face coordinates. This can be done by either sending custom face_coordinates
via the API (upon upload or using the explicit method for example), or setting them via the Media Library using the "Define Area of Interest" functionality:
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, a_ignore
can cause unexpected behavior.
For example, consider the following image which 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
However, when using a_ignore
along with the g_face
transformation, the result is an incorrectly cropped image:
In order to avoid the face information reset, you can chain the a_ignore
parameter, so it is within a different transformation component, as follows:
Comments
0 comments
Please sign in to leave a comment.