Cloudinary supports cropping images according to detected faces or pre-assigned custom coordinates.
For example, the following image is cropped tightly on the face by the automatic face detection.
http://res.cloudinary.com/demo/image/upload/c_crop,g_face/face_left.jpg
To control the default zoom level of the automatic cropping, you can use the `zoom` parameter (`z_` in URLs) as a multiplier of the default value of 1.
For example
Zoom-out to 70% (values between 0 to 1):
http://res.cloudinary.com/demo/image/upload/c_crop,g_face,z_0.7/face_left.jpg
Zoom-in to 130% (values of 1 and above):
http://res.cloudinary.com/demo/image/upload/c_crop,g_face,z_1.3/face_left.jpg
You can also override the default zoom for custom cropping, e.g.:
http://res.cloudinary.com/<cloud_name>/image/upload/c_crop,g_custom,z_0.8/my_image.jpg
For additional information on the Zoom parameter, you can refer to our Blog post or the documentation in the Transformation URL API.
Comments
0 comments
Please sign in to leave a comment.