Guest User

Untitled

a guest
May 25th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. setwd("{directory}")
  2. install.packages("devtools")
  3. devtools::install_github("paleolimbot/exifr")
  4. library(exifr)
  5. image_files <- list.files(pattern = "*.jpg")
  6. data <- as.data.frame(read_exif(image_files, tags = c("filename", "headline", "Description", "Keywords", "Title", "Copyright Notice")))
  7. data$Keywords <- sapply(data$Keywords, paste, collapse=",")
  8. write.csv(data, file='metadata.csv',row.names=FALSE, na="")
Add Comment
Please, Sign In to add comment