View source: R/resize_to_standard.R
Simple wrapper of magick::image_resize
.
See the parameters below.
1 | resize_to_standard(x, standard = 0.5, what = "all", scale = TRUE)
|
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.