Created
December 10, 2021 15:57
-
-
Save jsta/459293ea9cb150c1056c0c2aa651a8fc to your computer and use it in GitHub Desktop.
Use rstats magick to convert a png series to gif
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(magick) | |
image_write_gif(image_join(lapply(list.files("path/to/folder", pattern = "png", | |
include.dirs = TRUE, full.names = TRUE), image_read)), "output.gif", delay = 4.5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment