Extracting Metadata into a csv

27 views
Skip to first unread message

Tristan Purtlebaugh

unread,
Mar 5, 2025, 8:47:15 PMMar 5
to camtrapR
Hello,

I am having issues trying to extract metadata from jpg files including the SourceFile, FileName, Subject into a csv using exiftool and camtrapR. 

Any help on how on specific code to do this would be greatly appreciated. I started first in exiftool but I keep generating blank csv files for some reason so now I have come to camtrapR in rstudio.

Thank you,
Tristan Purtlebaugh

Juergen Niedballa

unread,
Mar 11, 2025, 8:06:44 AMMar 11
to camtrapR
Hello,
please share the code you used. The function recordTable is the main workhorse for such tasks, but require images to be organized a certain way. Otherwise exifTagNames() can possibly help.
If you have a specific task outside the scope of camtrapR that you need to extract data for you may consider system calls to exiftool (camtrapR does that internally, the data are stored as tables) or use one of the exif* packages on CRAN (exiftoolr is the most recent one). I don't have personal experience with these though.
Best regards,
Jürgen
Reply all
Reply to author
Forward
0 new messages