imager (version 0.41.2)

magick: Convert a magick image to a cimg image or image list

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.

Usage

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

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

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

Value

an object of class cimg or imlist

See Also

flatten.alpha, rm.alpha