Skip to contents

Combines a camera's base directory with one or more filenames returned by list_images() to produce download-ready image URLs.

Usage

build_image_url(camera_row, filename, size = c("small", "overlay", "thumb"))

Arguments

camera_row

A single-row tibble (or named list) from find_cameras(). Must contain the directory column corresponding to size.

filename

Character vector of one or more filenames from list_images().

size

Image size. One of:

  • "small" (default): ~720 px wide (smallDir)

  • "overlay": full-size overlay image (overlayDir)

  • "thumb": thumbnail ~200 px tall (thumbDir)

Value

A character vector of full image URLs, one per element of filename.

Examples

if (FALSE) { # \dontrun{
cam   <- find_cameras(cam_id = "WI_Chippewa_River_at_Grand_Ave_at_Eau_Claire")
imgs  <- list_images(cam$camId[[1]], limit = 5)
urls  <- build_image_url(cam, imgs$filename, size = "small")
} # }