Resize
Changes the size of an image.
🖼️ Image options and parameters of resize
method
Image resizing, also known as image rescaling, is an image processing technique used to change the dimensions (size) of an image. Rescaling can involve both enlarging and reducing the image's size. The goal is to adapt an image to fit within specific dimensions, whether it's for display, printing, or other purposes.


Parameters and default values
options
Options
Property | Required | Default value |
---|---|---|
borderType | no | constant |
borderValue | no | 0 |
height | no | - |
interpolationType | no | bilinear |
preserveAspectRatio | no | true |
width | no | - |
xFactor | no | - |
yFactor | no | - |