problem with exiftool

753 views
Skip to first unread message

angela.and...@gmail.com

unread,
Dec 14, 2017, 8:44:07 PM12/14/17
to camtrapR
Hi everybody,

I hope you can help me!

I used camtrapR a few months ago and I had not any problem with exiftool.  But now, I am using the package for other set of pictures and I get the following error:
Sounds like exiftool was not successfully installed? But I ran exiftool by typing "exiftool" in a terminal window and it worked!

Thanks in advance!


> renaming_table <- imageRename(inDir = directory_original,
+                                outDir = directory_images_renamed, 
+                                hasCameraFolders = F, 
+                                copyImages = T) 

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LC_ALL = (unset),
LC_CTYPE = "en_MX.UTF-8",
LANG = "en_MX.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
File not found: NA
Warning: NA seems to contain no images;  found 0 jpgs
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LC_ALL = (unset),
LC_CTYPE = "en_MX.UTF-8",
LANG = "en_MX.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
File not found: 
Warning:  seems to contain no images;  found 0 jpgs
Error in `[.data.frame`(copy.info.table, , stationCol) : 
  undefined columns selected
In addition: Warning messages:
1: running command 'exiftool -q -f -t -r -Directory -FileName -EXIF:DateTimeOriginal -ext JPG "NA"' had status 1 
2: running command 'exiftool -q -f -t -r -Directory -FileName -EXIF:DateTimeOriginal -ext JPG ""' had status 1 

Juergen Niedballa

unread,
Dec 16, 2017, 12:24:08 AM12/16/17
to camtrapR
Hi Angela,
I think exiftool is available. It looks more like a problem with your directory_original variable. Is it defined correctly?. Can you please show the content of that object?

See the last bit of your error message, the part I highlighted:

In addition: Warning messages:
1: running command 'exiftool -q -f -t -r -Directory -FileName -EXIF:DateTimeOriginal -ext JPG "NA"' had status 1 
2: running command 'exiftool -q -f -t -r -Directory -FileName -EXIF:DateTimeOriginal -ext JPG ""' had status 1 
Instead of "NA" or "", it should be a directory name (a station directory to be precise).
Jürgen

angela.and...@gmail.com

unread,
Jan 10, 2018, 11:43:37 AM1/10/18
to camtrapR
Hi Jürgen,

Thanks. Sorry for my delay in answering.

I think exiftool was not successfully installed because when I run the following line and I don't get nothing.
> Sys.which ("exiftool.exe")
exiftool.exe 
          "" 

The directory was correctly defined. Here is its content:

> directory_original <- setwd ("/Users/Angela/Documents/ANGELITA/2-SERVICIO ACADEMICO/Cursos ofrecidos/FOTO-TRAMPEO/JCO/IMAGENES ORIGINALES")
> print (directory_original) 
[1] "/Users/Angela/Documents/ANGELITA/2-SERVICIO ACADEMICO/Cursos ofrecidos/FOTO-TRAMPEO/JCO/IMAGENES ORIGINALES"

I appreciate your help.

Best,

Angela C.

Juergen Niedballa

unread,
Jan 13, 2018, 12:45:21 PM1/13/18
to camtrapR
Hi Angela,
yes, it looks like exiftool is not found. Are you working on a Mac? I don't have any experience using Macs, so I am not sure what the problem may be. Maybe other users can contribute here?

Does it open the help file when you type
exiftool
in the terminal? 

Best,
Jürgen


angela.and...@gmail.com

unread,
Jan 13, 2018, 3:53:50 PM1/13/18
to camtrapR
Hi Juergen,

I am working on a Mac. Curiously, I had already worked with camtrapR without any problem on my computer.

Yes, the help file is opened with I type in the terminal. 

I hope someone here can help me.

Best,

Juergen Niedballa

unread,
Jan 14, 2018, 1:15:56 AM1/14/18
to camtrapR
Ok, so exiftool is found on your system. 
To check if R can find your exiftool, run this in R:

system("exiftool")

If the help shows up R can find exiftool and the problem is somewhere else.

In the first post, there seems to be an issue with you locale setting:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LC_ALL = (unset),
LC_CTYPE = "en_MX.UTF-8",
LANG = "en_MX.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").


I am not sure how this arises and how to fix it. Maybe it has to do with your system language settings (mexican), which is unknown to perl (the language exiftool is written in)? I am sorry I don't understand the issue and can't be of more help here. 
Best,
Jürgen

angela.and...@gmail.com

unread,
Jan 15, 2018, 1:25:58 PM1/15/18
to camtrapR
OK Juergen. Thank you very much!

Best,

Angela

almat...@gmail.com

unread,
Feb 20, 2019, 5:47:41 PM2/20/19
to camtrapR
Hola Angela,

pudiste resolver el problema. Yo tengo un problema similar, es la primera vez que quiero trabajar con la aplicación exiftool en R, pero me arroja este error:

Warning message:
In system(command.tmp2b, intern = TRUE) :
  running command 'exiftool -r "-DateTimeOriginal+=10:0:0 0:0:0" "Correccion/CB1"' had status 1

Juergen Niedballa

unread,
Feb 23, 2019, 9:20:56 AM2/23/19
to camtrapR
Hola,
try renaming the directory your images are in. There may be a problem with the "/" in the directory name. 
If it doesn't help, please provide some more details about the problem and the code you ran. 
Thank you,
Jürgen

PABLO PALENCIA

unread,
May 31, 2019, 7:10:06 AM5/31/19
to camtrapR
Hi,

I have a similar problem. I had already worked with Exiftool and R previously without problems, but recently it has started to produce problems (I don't know why, same code, same computer, and even the same photos!)

We have solved it with this code:

setwd('...photos directory...') 
obj <- system2("...exiftool directory...", args="-common  -FNumber -DateTimeOriginal -FileType -csv -r ... photos directory...", stdout=TRUE)

Although we are not using camtrapR for that, I think that the problem can be similar and it can help you. This code generates an R object with the metadata of the photos.

Hoping that it helps
Pablo

Juergen Niedballa

unread,
Jun 1, 2019, 6:55:15 AM6/1/19
to camtrapR
Hi Pablo,
Thank you for sharing the code. 
It is odd about exiftool would suddenly failing? What was the problem , or the error message you got?
Jürgen

PABLO PALENCIA

unread,
Jul 29, 2019, 10:03:45 AM7/29/19
to camtrapR
The original code was designed to create a .csv file with the metadata information. However, it didn't work. Working with the code that I sent, you can directly create a R object with the metadata 
Reply all
Reply to author
Forward
0 new messages