Automatic gravity crop
Automatically detects the focal point
Chooses the most important image features and objects and sets the focal point on them when cropping.
gravity=smart
gravity=auto
gravity=face
gravity=meta
Smart gravity
Sets the crop focal point on the people in the image or on the most prominent features if no faces are detected. Useful for creating thumbnails from images with different aspect ratios.
Examples
Automatic gravity
Setting the gravity parameter to auto finds the focal point of the image based on entropy.
Examples
Face gravity
When using gravity=face, all images with one dominant face are focused on this face upon cropping. If there are many or no faces in the image, gravity falls back to auto.
Examples
Metadata gravity
When using gravity=meta, all images having a custom focus point defined in the library will use this as if using the focal point crop. If there is no focus point defined in the image metadata, gravity falls back to auto.
Last updated






