I had an older version of exiftool (version 9 or 10, I think) running in my old windows machine. I recently started working on a Linux machine, and the command in my rakefile that used to work on windows no longer seems to work:
exiftool -echo SourceFile,FileName,ImageWidth,ImageHeight,FileModifyDate -r -p /$directory/$filename,$filename,$imagewidth,$imageheight,$filemodifydate -d %Y-%m-%dT%H:%M:%S%z assets/photo > _data/images.csv
I am not sure if this is due to using a newer version of exiftool (12.12) or if it has something to do with my environment (running on docker).
The desired output looks something like this:
SourceFile FileName ImageWidth ImageHeight FileModifyDate
/assets/photo/file.jpg file.jpg 818 545 2018-01-20T12:05:00-0500
Instead, I am getting this:
SourceFile FileName ImageWidth ImageHeight FileModifyDate
//
Any help would be greatly appreciated.
In Linux shells you need to put single quotes around arguments containing a dollar sign (see my sig).
- Phil
That did the trick! Thanks, Phill.