Performs either the crop or fit operation depending on the origin image and the desired transformation size.

If the desired image is smaller than the original, the result is cropped to achieve the desired dimensions.

Orignal image - 650x500 pixels


Photo alt \#responsive

If the desired image is larger than the original, the fit operation is applied to avoid image enlargement. All gravity, solid background and blurred background fit operations apply.

Orignal image - 400x250 pixels


Photo alt \#responsive

If you include the trim operation in the URL, the image will be trimmed first (if possible) and then either cropped or fitted to the desired size.

Original - 479x479 pixels


Photo alt \#responsive