Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- setwd("{directory}")
- install.packages("devtools")
- devtools::install_github("paleolimbot/exifr")
- library(exifr)
- image_files <- list.files(pattern = "*.jpg")
- data <- as.data.frame(read_exif(image_files, tags = c("filename", "headline", "Description", "Keywords", "Title", "Copyright Notice")))
- data$Keywords <- sapply(data$Keywords, paste, collapse=",")
- write.csv(data, file='metadata.csv',row.names=FALSE, na="")
Add Comment
Please, Sign In to add comment