problems with exiftool in R

Started by Angela, January 23, 2018, 12:06:34 PM

Previous topic - Next topic

Angela

Hi folks,

I am trying to use exiftool as part of a R package called camtrapR. camtrapR uses exiftool to extract metadata from camera traps images and performance specific data analysis.

I successfully installed exiftool in my Mac 10.11.16 (The Captain). In fact when I run exiftool by typing "exiftool" in a Terminal window, I can see the User Contributed Perl Documentation. But when I type the function >Sys.which ("exiftool.exe") in R, it does not work.

I had already used exiftool with this R package seven months ago and had not had any problem. I do not know what happens now. Could give some advice, please?

Best,

Angela


Phil Harvey

Hi Angela,

On Mac, you shouldn't be running "exiftool.exe"; that is the Windows executable.  Instead, try just "exiftool", or maybe "/usr/local/bin/exiftool", or if necessary "perl /usr/local/bin/exiftool".  Which one you need will depend on the environment settings and how things are run from R.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).