image_info: [Deprecated] Fetch information about an image, given its...

View source: R/image_info.R

image_infoR Documentation

[Deprecated] Fetch information about an image, given its image ID

Description

Note that there is currently no web service that provides image information, and so we are scraping results from pages of the form https://images.biodiversitydata.se/image/details?imageId=id. This web scraping may be fragile, and will be replaced by a web-service-based function when one becomes available.

Usage

image_info(id, verbose = sbdi_config()$verbose)

Arguments

id

character: IDs of images (e.g. as returned by occurrences in the imageUrl column). Each ID will be of a format something like "84654e14-dc35-4486-9e7c-40eb2f8d3faa"

verbose

logical: show additional progress information? [default is set by sbdi_config()]

Value

A data.frame with one row per id, and at least the columns imageIdentifier and imageURL

See Also

sbdi_config occurrences

Examples

## Not run: 
## Using IDs returned from occurrences() function

image(id = c("f31e5f0e-f964-4bc3-b8f3-78f2ad520563",
  "39091d30-3016-417f-8860-b7c2a8d37942"))

## End(Not run)

biodiversitydata-se/SBDI4R documentation built on Feb. 23, 2024, 4:15 p.m.