exif_df: Read Exif data into a data.frame

Description Usage Arguments Details Value See Also Examples

View source: R/exif_df.R

Description

This function will create a data.frame with one row for each file. Each Exif tag will get it's own column. A "file" column is also included with the original file name.

Usage

1
exif_df(files, silent_errors = FALSE)

Arguments

files

A character vector containing paths to jpeg files.

silent_errors

If TRUE, no errors are triggered when processing files but an "Error" column is added to the output if an error occurs

Details

Note that some Exif values are difficult to represent with basic R data types. One such example are "rational" values that are specified with separate numerator and denominator values. Those values are combined into a vector and are included in the data.frame as a list column.

Some jpeg files embed thumbnails and may contain tags for both the main image and thumbnail. Tags from the thumbnail region (IDF1) will have names prefixed with "Thumbnail" to avoid duplicate names.

Value

A data.frame

See Also

section_df()

Examples

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

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