View source: R/interactive_crop.R
interactive_crop | R Documentation |
Using image_crop of 'magick' interactively. geometry is a parameter of image_crop. See reference manual of 'magick' for detail.
interactive_crop(image, color = "white", return_param = FALSE, scale)
image |
a magick image object |
color |
color of background. a valid color string such as "navyblue" or "#000080". "none" is not allowed. |
return_param |
If return_param is TRUE, returns a value of geometry. If return_param is FALSE, returns a magick image object. |
scale |
geometry to be passed to image_scale function of magick package. image is scaled just for preview and result image is not scaled if scale is given. |
a magick image object or a value of geometry.
Shota Ochi
if (interactive())
{
interactive_crop(wizard)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.