R wrapper for the 'gifski' Rust Cargo crate.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
R
man
src
tools
.Rbuildignore
.gitignore
.travis.yml
DESCRIPTION
LICENSE
NAMESPACE
NEWS
appveyor.yml
configure
gifski.Rproj
readme.md

readme.md

gifski in R

Build Status AppVeyor Build Status CRAN RStudio mirror downloads

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")