Set the thumbnail for a content item.

set_thumbnail(content, path)

Arguments

content

A content item.

path

Either a path to a local file or a URL to an image available over HTTP/HTTPS. If path is an HTTP or HTTPS URL, the image will first be downloaded.

Value

The content item (invisibly).

Examples

if (FALSE) { # \dontrun{
client <- connect()
item <- content_item(client, "8f37d6e0-3395-4a2c-aa6a-d7f2fe1babd0")
set_thumbnail(item, "resources/image.png")
} # }