magick | R Documentation |
The magick library package stores its data as "magick-image" object, which may in fact contain several images or an animation. These functions convert magick objects into imager objects or imager objects into magick objects. Note that cimg2magick function requires magick package.
magick2imlist(obj, alpha = "rm", ...)
magick2cimg(obj, alpha = "rm", ...)
cimg2magick(im, rotate = TRUE)
obj |
an object of class "magick-image" |
alpha |
what do to with the alpha channel ("rm": remove and store as attribute, "flatten": flatten, "keep": keep). Default: "rm" |
... |
ignored |
im |
an image of class cimg |
rotate |
determine if rotate image to adjust orientation of image |
an object of class cimg or imlist
an object of class "magick-image"
Jan Wijffels, Simon Barthelme
Shota Ochi
flatten.alpha, rm.alpha
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.