R/nr-magick.R
nrs_to_gif.RdMagick conversion - possibly won't be in final version of 'nara' pkg
nrs_to_gif(nr_list, filename, verbose = FALSE, framerate = 30, ...)list of native raster image
filename of gif
logical. default FALSE
frames per second
other arguments passed to magick::image_write_gif()
None.
Other conversion functions:
magick_to_nr(),
matrix_to_nr(),
nr_to_raster(),
nrs_to_mp4()
if (FALSE) { # interactive() && requireNamespace("magick", quietly = TRUE)
im <- magick::logo
nr1 <- magick_to_nr(im)
nr2 <- nr_copy(nr1)
nrs_to_gif(list(nr1, nr2), "nothing.gif")
}