Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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)

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

Value

an object of class cimg or imlist

an object of class "magick-image"

Author(s)

Jan Wijffels, Simon Barthelme

Shota Ochi

See Also

flatten.alpha, rm.alpha


imager

Image Processing Library Based on 'CImg'

v0.42.10
LGPL-3
Authors
Simon Barthelme [aut], David Tschumperle [ctb], Jan Wijffels [ctb], Haz Edine Assemlal [ctb], Shota Ochi [cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.