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.
Kinds of images compatible with algorithm
Image property | What it means | Possible values |
---|---|---|
bitDepth | number of bits per channel | [8,16] |
components | number of components | any |
alpha | is alpha channel allowed | true |
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 | - |