Resize and crop to achieve the desired width and height
Crops the image to specified dimensions (width and height) while keeping proportions and delivers the resulting image via CDN.
func=crop
This is the default resizing mode when both width and height operations are used. You do not need to specify func=crop explicitly.
/docs/birds.jpg?func=crop&w=600&h=310arrow-up-right
/docs/birds.jpg?w=600&h=410arrow-up-right
Specifies which part of the image you wish to keep while cropping. If you omit the gravity option, central cropping is performed.
gravity=X
northwest
north
northeast
west
center | centre (default)
east
southwest
south
southeast
auto - more info
face - more info
smart - more info
X,Y - more info
/docs/paris-salon2.jpg?w=500&h=430&gravity=westarrow-up-right
/docs/paris-salon2.jpg?w=500&h=430&gravity=eastarrow-up-right
Last updated 8 months ago