Awesome
gifski in R
gifski converts video frames to GIF animations using pngquant's fancy features for efficient cross-frame palettes and temporal dithering. It produces animated GIFs that use thousands of colors per frame.
This R package wraps the gifski cargo crate, see also the website.
Examples
Minimal example from the ?gifski
manual page.
png("frame%03d.png")
par(ask = FALSE)
for(i in 1:10)
plot(rnorm(i * 10), main = i)
dev.off()
png_files <- sprintf("frame%03d.png", 1:10)
gif_file <- gifski(png_files)
unlink(png_files)
utils::browseURL(gif_file)
Installation in R
The hellorust readme has instructions on how to setup rust on Windows, MacOS or Linux. After that you can just do:
devtools::install_github("r-rust/gifski")