Cloudimage - Documentation

Automatic gravity crop

Centres the crop to focus on the most prominent object in the image. Useful for creating thumbnails from images with different aspect ratios. To use automatic crop, just set gravity operation to auto. Using gravity=face, the crop focuses on the face on the image.

gravity=auto

gravity=face

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.