exif_value: Extract values for single Exif tag

Description Usage Arguments Value See Also Examples

View source: R/exif_value.R

Description

This function makes it easy to return the values for a single Exif tag. If you need multiple tag values, it would be more efficient to use exif_df() to extract them all at once.

Usage

1
2
3
4
5
6
7
8
exif_value(
  files,
  tag,
  fill_value = NA,
  named = TRUE,
  simplify = TRUE,
  silent_errors = FALSE
)

Arguments

files

A character vector containing paths to jpeg files

tag

A numeric tag code or character tag name

fill_value

A value to return if tag not present

named

Should result be named with original file name?

simplify

Should result be simplified to a vector (if possible)?

silent_errors

If TRUE, no errors are triggered when processing files and the fill_value is used upon failure

Value

A vector or list of tag values

See Also

exif_df()

Examples

1
2
3
sample_dir <- system.file("extdata", package="readexif")
sample_files <- list.files(sample_dir, pattern="\\.jpg$", full.names = TRUE)
exif_value(sample_files, "Orientation", fill_value=1)

MrFlick/readexif documentation built on Dec. 17, 2021, 4:22 a.m.