png_to_gif: Convert PNGs to an animated GIF

png_to_gifR Documentation

Convert PNGs to an animated GIF

Description

Converts a vector of PNG files to an animated GIF.

Usage

png_to_gif(png, ..., fps = 0.5, out = "Plots/animated_gif.gif")

Arguments

png

Path to a PNG file.

...

Paths to additional PNG files.

fps

Frames per second for the animated GIF.

out

Path to the output file.

Value

A list of magick objects.

Examples

## Not run: 
png_files <- list.files(path = "Plots/",
                        pattern = "*.png",
                        full.names = TRUE)
png_to_gif(png = png_files,
           fps = 1.0,
           out = "Plots/animated_gif.gif")

## End(Not run)


NicWir/VisomX documentation built on Dec. 8, 2024, 1:27 a.m.