Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save PolMine/250cdafedf1e9d494b4fed031229a1c5 to your computer and use it in GitHub Desktop.
Save PolMine/250cdafedf1e9d494b4fed031229a1c5 to your computer and use it in GitHub Desktop.
library(magick)
library(purrr)
list.files(path = "~/Lab/tmp/", pattern = "*.png", full.names = T) %>%
map(image_read) %>% # reads each path file
image_join() %>% # joins image
image_animate(fps = 1) %>% # animates, can opt for number of loops
image_write("~/Lab/annotation_demo.gif") # write to current dir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment