centerImage | R Documentation |
Center and crop the image
centerImage(
image,
x,
y,
xProportions = c(0.1, 0.1),
yProportions = c(0.1, 0.1),
outputFile = NULL,
downsample = 0
)
image |
a file path as a character or a magick-image |
x |
center x coordinate of the image |
y |
center y coordinate of the image |
xProportions |
vector of length 2. If |
yProportions |
same as xProportions but for y |
outputFile |
file path of the output. If null, a magick-image is returned |
downsample |
downsampling used when image was downloaded |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.