image_write_video(image, path = NULL, framerate = 10, ...)
image_write_gif(image, path = NULL, delay = 1/10, ...)
magick image object returned by image_read()
or image_graph()
filename of the output gif or video. This is also the return value.
frames per second, passed to av_encode_video
additional parameters passed to av_encode_video and gifski.
duration of each frame in seconds (inverse of framerate)
This requires an image with multiple frames. The GIF exporter accomplishes the same thing as image_animate but much faster and with better quality.