News:

2023-03-15 Major improvements to the new Geolocation feature

Main Menu

Formatting output using specific headings

Started by mdlr, November 28, 2022, 12:21:51 PM

Previous topic - Next topic

mdlr

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.

Phil Harvey

In Linux shells you need to put single quotes around arguments containing a dollar sign (see my sig).

- 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 ($).

mdlr