Pixta Cloud

Document
Home/Resizing and cropping/Crop Mode/

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

women

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

crop face woman center

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

crop face woman center

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

women

Cropped: crop=faces

crop face woman center

Entropy

Focus on the region with the highest Shannon entropy

Default - crop from center

island

Cropped: crop=entropy

island entropy area

Attention

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

Original

island

Cropped: crop=attention

island attention area