PLAYGROUND (experimental)

image_resize

Resize an image at specified dimension. If new width or height is 0 then preserve aspect ratio
image_resize(
    img, 
    width, 
    height, 
    [resampling=quality]
)

Resize an image at specified dimension. If new width or height is 0 then preserve aspect ratio

Syntaxe

image(img, 10, 20, resampling="pixel");

Arguments

NameTypeRequiredDefaultDescription
imgyes-Image object
widthyes-Width of new image
heightyes-Height of new image
resampling-qualityquality, sharp, smooth or pixel (string)