Gravity
gravity - g - g_<position value>
Last updated
gravity - g - g_<position value>
Last updated
gravity value
string
Default Value: center
Value can be;
t, tl, tr, b, bl, br, c, center
face
faces (for multiple faces)
<objectname> (simple object name)
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 parameter (by default is used).
Uses locations to adjust the gravity of cropped images.
Top: t
Top-Left: tl
Top-Right: tr
Bottom: b
Bottom-Left: bl
Bottom-Right: br
Center: center, c
AI-powered face and object detection. Creates a region to focus on faces or objects.
Original image
https://demo.imagemash.io/woman.jpg
Eg. g_tr, g_face, g_sheep, g_hairdrier Required Parameters:
Example usage of + g_face.
You can also use . Since c_crop needs a region to crop, g_face provides that region. If you are going to make thumbnails, we suggest you use instead of c_crop. As it is specifically designed for that purpose.