Crop Mode (crop)
Crop mode controls how the image is aligned when fit=crop is set. The w and h parameters should also be set, so that the crop behavior is defined within specific image dimensions.
Valid value is faces, entropy, attention, top, bottom, left, right, center.
Directions: top, bottom, left, right, center
By default, crop area is center of image
w=300

Cropped: w=300&h=200&fit=crop

Cropped: w=300&h=200&fit=crop&crop=left

Face Cropping
If faces are detected in the image, attempts to center the crop to them. Otherwise, the cropping alignment will default to centered if no additional values are provided.
Default - crop from center

Cropped: crop=faces

Entropy
Focus on the region with the highest Shannon entropy
Default - crop from center

Cropped: crop=entropy

Attention
Focus on the region with the highest luminance frequency, color saturation and presence of skin tones.
Original

Cropped: crop=attention
