upscale
parameter to increase the final image resolution width
and height
parameter supports dynamic sizing and is based on pixels or percent values.width
and height
are not specified the image size will not be changed. crop
) and specify only one side of the image(width
or height
), the unspecified side remains unchanged and you get a cropped image.crop
and specify only one side of the image(width
or height
), another side will be defined as auto and the final image will be resized keeping the aspect ratio.width
and height
are specified the resulting image will be resized until it fully covers the specified dimensions and gets cropped. fit
parameter controls how the image will be constrained within the provided size, relative to the width
and height
.bounds
Preserves aspect ratio. Resize the image to fit entirely within the specified region, making one dimension smaller if needed. cover
Preserving aspect ratio. Resize the image to entirely cover the specified region, making one dimension larger if needed.canvas
Input image will be placed on the canvas established by width
and height
. The aspect ratio of the input image won’t change. Extra space will be filled with the background color.crop
Scales an image until it fully covers the specified dimensions. the rest gets cropped. Fit crop support center
and smart
modes for cropping.center
and smart
modes for cropping.