How to crop from center to left, amd center to right
Hi, I have a question, how could I crop the image from the center to left, and center to right. it doesn't matter if I have to call a different URL.
See the illustration below.

I have no idea which transformation I should use.
Kindly help.
Thank you very much.
0
-
Official comment
Hi,
The cropping "direction" is determined by the 'gravity' parameter (see here for the docs).
For example:
Original image:https://demo-res.cloudinary.com/image/upload/sample.jpg
Cropping from the center to left using 'g_west' -https://demo-res.cloudinary.com/image/upload/w_0.5,h_1.0,c_crop,g_west/sample.jpg
Cropping from the center to right using 'g_east' -https://demo-res.cloudinary.com/image/upload/w_0.5,h_1.0,c_crop,g_east/sample.jpg
Post is closed for comments.
Comments
1 comment