Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First pass at streaming encoder #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

First pass at streaming encoder #7

wants to merge 2 commits into from

Conversation

jeroen
Copy link
Member

@jeroen jeroen commented Sep 28, 2018

@thomasp85 Example of calling the API:

library(gifski)
gif_file <- tempfile(fileext = ".gif")
gifski_encoder <- gifski_encoder_init(gif_file)

for(i in 1:10){
  pngfile <- tempfile(fileext = '.png')
  png(pngfile)
  plot(rnorm(i * 10), main = i)
  dev.off()
  framenum <- gifski_encoder(pngfile)
  cat("Added frame: ", framenum, "\n")
  unlink(pngfile)
}

out <- gifski_encoder(NULL)
utils::browseURL(out)

@jeroen jeroen force-pushed the master branch 4 times, most recently from 2fec96b to 61aea9e Compare October 2, 2018 23:09
@jeroen jeroen force-pushed the master branch 6 times, most recently from b9358d3 to 4776df5 Compare April 4, 2022 17:09
@jeroen jeroen force-pushed the master branch 2 times, most recently from c517a0a to f964322 Compare August 1, 2022 10:30
@jeroen jeroen force-pushed the master branch 2 times, most recently from 711f6d8 to 7af0ff6 Compare May 19, 2023 14:13
@jeroen jeroen force-pushed the master branch 6 times, most recently from f5de62b to f33573d Compare October 12, 2023 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant