resize_to_standard {plothelper} | R Documentation |
Resize an Image According to the Other Image or to Ratios
Description
Simple wrapper of magick::image_resize
.
See the parameters below.
Usage
resize_to_standard(x, standard = 0.5, what = "all", scale = TRUE)
Arguments
x |
the image you want to resize. |
standard |
either the image whose size is the
standard or two ratios. When it specifies two ratios,
it should be a numeric vector whose first and second
elements are multipliers for width and height. For
example, x's width and height are 100 and 60, and
|
what |
this parameter is used only when
|
scale |
Default is TRUE. It is only used when only one of width and height is to be modified. This parameter decides whether the image is automatically scaled. |