A positive integer representing the new height in pixels of the
image (default: NULL).
width
A positive integer representing the new width in pixels of the
image (default: NULL).
fx
A positive numeric representing the ratio by which the width of
the image must be resized (default: NULL). Ignored if width is set.
fy
A positive numeric representing the ratio by which the height of
the image must be resized (default: NULL). Ignored if height is set.
interpolation
A character string representing the type of interpolation
to use during resizing (default: "linear"). See notes for all accepted
interpolation methods.
target
The location where the results should be stored. It can take 3
values:
"new":a new Image object is created and the results
are stored inside (the default).
An Image object:the results are stored in another
existing Image object. This is fast but will replace the
content of target. Note that target must have the same bit
depth and number of channels as image but that its dimensions must
match that of the resized image, otherwise an error is thrown.
Value
If target="new", the function returns an Image
object. If target is an Image object, the function
returns nothing and modifies that Image object in place.