R/tags.R

Defines functions get_supported_tags

Documented in get_supported_tags

#' Get supported TIFF tags
#'
#' Returns a named integer vector of supported TIFF tags. The names are the
#' human-readable tag names, and the values are the corresponding tag codes.
#'
#' @return A named integer vector of supported TIFF tags
#'
#' @export
get_supported_tags <- function() {
  temp_file <- tempfile(fileext = ".tif")
  on.exit(unlink(temp_file), add = TRUE)
  .Call("get_supported_tags_C", temp_file, PACKAGE = "ijtiff")
}
ropensci/ijtiff documentation built on July 4, 2025, 3:50 a.m.