Skip to content
This repository has been archived by the owner on Feb 14, 2023. It is now read-only.

deprecate cimg2magick function #142

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion R/conversions.R
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ cvt.frame <- function(f){

#' Convert a magick image to a cimg image or image list and vice versa
#'
#' 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.
#' 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 and is deprecated.
#' @param obj an object of class "magick-image"
#' @name magick
#' @param ... ignored
Expand Down Expand Up @@ -539,6 +539,7 @@ magick2cimg <- function(obj,alpha="rm",...)
#' @author Shota Ochi
cimg2magick <- function(im, rotate = TRUE)
{
message("cimg2magick function is deprecated.\nUse image_read function of magick package instead.\n")
out <- as.array(frames(im, drop = TRUE)[[1]])
if (spectrum(im) == 1)
{
Expand Down
2 changes: 1 addition & 1 deletion man/magick.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.