make_gif: Make a gif from a folder of PNG image files.

Description Usage Arguments Examples

View source: R/make_gif.R

Description

Point to a folder of PNG files and engifify them (make them into a gif (I made this word up)). A convenience function for the gifski function.

Usage

1
make_gif(png_folder = "img", gif_path = "new_gif.gif", ...)

Arguments

png_folder

Folder where you've stored your PNG image files (.png or .PNG).

gif_path

File path for your new gif including .gif extension.

...

Pass further arguments to gifski (see ?gifski for details).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
# filepath of folder containing PNGs
gif_in <- "folder/subfolder"

# filepath for the output gif (including extension)
gif_out <- "gifs/amazing_gif.gif"

# engifify
make_gif(
  png_folder = gif_in,
  gif_path = gif_out
)

## End(Not run)

matt-dray/dray documentation built on Jan. 30, 2021, 7:10 a.m.