Learn R Programming

imager (version 0.45.8)

magick: Convert a magick image to a cimg image or image list and vice versa

Description

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.

Usage

magick2imlist(obj, alpha = "rm", ...)

magick2cimg(obj, alpha = "rm", ...)

cimg2magick(im, rotate = TRUE)

Value

an object of class cimg or imlist

an object of class "magick-image"

Arguments

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

Author

Jan Wijffels, Simon Barthelme

Shota Ochi

See Also

flatten.alpha, rm.alpha