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

video

Write Video


Description

High quality video / gif exporter based on external packages gifski and av.

Usage

image_write_video(image, path = NULL, framerate = 10, ...)

image_write_gif(image, path = NULL, delay = 1/10, ...)

Arguments

image

magick image object returned by image_read() or image_graph()

path

filename of the output gif or video. This is also the return value.

framerate

frames per second, passed to av_encode_video

...

additional parameters passed to av_encode_video and gifski.

delay

duration of each frame in seconds (inverse of framerate)

Details

This requires an image with multiple frames. The GIF exporter accomplishes the same thing as image_animate but much faster and with better quality.

See Also


magick

Advanced Graphics and Image-Processing in R

v2.7.2
MIT + file LICENSE
Authors
Jeroen Ooms [aut, cre] (<https://orcid.org/0000-0002-4035-0289>)
Initial release

We don't support your browser anymore

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