Creates a region to focus for. Every value of Gravity defines a region to focus on. In order for to Gravity parameter to work, the image must also have a Crop parameter (by default c_cover is used).
Locational
Uses locations to adjust the gravity of cropped images.
AI-powered face and object detection. Creates a region to focus on faces or objects.
woman.jpg
Original image
https://demo.imagemash.io/woman.jpg
w_300,h_300
https://demo.imagemash.io/w_300,h_300/woman.jpg
Default position after cropping (Centered)
Please note that when you provide both Height and Width, c_cover is automatically inserted into your image. Since it is the default Crop type.
You need to specify your Crop type if you need to use other types.
So the above example is actually: w_300,h_300,c_contain
You can also use c_crop. Since c_crop needs a region to crop, g_face provides that region. If you are going to make thumbnails, we suggest you use c_thumb instead of c_crop. As it is specifically designed for that purpose.