Download a gif

Usage

fetch(x, what = "original", format = "gif", dest = NULL, quiet = FALSE)

Arguments

x
A giphy object
what
The type of image to download. original will always be available but giphy supplies fixed_height, fixed_width downsized, etc. See names(x$images) for possible options for a given image. The default is to download the original (largest) gif.
format
The format to download in. Default is gif, but mp4 and webp are often available (for what="looping" the only option is mp4.
dest
Destination to download the file to. Default is a temporary file.
quiet
Logical indicating if progress bars during download should be suppressed.

Value

The filename of the downloaded file. This can be fed into show_gif.

Description

Download a gif

Author

Rich FitzJohn