camelot2xmp: write camelot entries to XMP via exifr

Description Usage Arguments Details Value

View source: R/camelot2XMP.R

Description

This function read a camelot data.frame and write the metadata into XMP part of the Jpeg file as a JSON string

Usage

1
2
3
4
5
6
7
camelot2xmp(
  camelot,
  errorlog_path = getwd(),
  delete_original = FALSE,
  progress = TRUE,
  verbos = TRUE
)

Arguments

camelot

data.frame, the camelot data with at least Absolute.Path column

errorlog_path

string, the direction to store the error log (if there is any), default is the working directory

delete_original

boolean, the exiftool will automatically creat a copy of the original photo end with "_original", do you want to delete it? The default is not to delete it (FALSE)

progress

boolean, whether to have a progress bar

verbos

boolean, whether to be verbos

Details

Make sure that exiftool are proper configed, check documentation in exifr and exiftool https://exiftool.org/. Especially when on Windows, you might need to install Perl. The tag written is xmp-dc:Subject, see exiftool's documentation for detail of the tag https://exiftool.org/TagNames/XMP.html

Value

boolean, whether we encounter errors


YunyiShen/CamelotXMP documentation built on Dec. 18, 2021, 8:22 p.m.