Resizes a image.

image.resize( width [, height [, interpolation [, blurFactor ] ] ] )

Returns: void

Argument Description
string, required

New width of the image. If this value is blank, the width is calculated proportionately to the height.

string, optional

New height of the image. If this value is blank, the height is calculated proportionately to the width.

string, optional

the interpolation method for resampling. You can specify a specific interpolation algorithm by name (for example, hamming), by image quality (for example, mediumQuality), or by performance (for example, highestPerformance). Valid values are: - highestQuality (default) - highQuality - mediumQuality - highestPerformance - highPerformance - mediumPerformance - nearest - bilinear - bicubic - bessel - blackman - hamming - hanning - hermite - lanczos - mitchell - quadratic

number, optional

The blur factor used for resampling. The higher the blur factor, the more blurred the image (also, the longer it takes to resize the image). Valid values are 1-10.


There are currently no examples for this function

See also