Skip to contents

This function removes all metadata from a specified photo file using exiftool. Optionally, it can overwrite the original file or create a backup.

Usage

rfp_photo_metadata_rm(path_photo, overwrite_original = TRUE, log_output = TRUE)

Arguments

path_photo

A character string specifying the path to the photo file.

overwrite_original

A logical value indicating whether to overwrite the original photo file (default is TRUE). If FALSE, a backup file with the suffix _original will be created.

log_output

Optionally produce tibble of log output (default is TRUE)

Value

None. The function modifies the specified file by removing its metadata.

Examples

if (FALSE) { # \dontrun{
  rfp_photo_metadata_rm("path/to/photo.jpg")

  # many at the same time with no logging

  list_of_photo_paths |> purrr::walk(rfp_photo_metadata_rm, log_output = FALSE)

  # many at the same time with logging

  log_df <- list_of_photo_paths |> purrr::map_dfr(rfp_photo_metadata_rm)
} # }