Skip to main content

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.

placeholderplaceholder
Ran in 0.00μs (Infinity ops/s)

Parameters and default values

  • options

Options

PropertyRequiredDefault value
borderTypenoconstant
borderValueno0
heightno-
interpolationTypenobilinear
preserveAspectRationotrue
widthno-
xFactorno-
yFactorno-