how to write exif informations back from a modified text file

Started by trust-me5, May 03, 2012, 10:07:08 PM

Previous topic - Next topic

trust-me5

I have used the command
exiftool *.jpg -n -FocalLength > mm1.txt

The file mm1.txt contains then


======== I-P1000849.jpg
Focal Length                    : 70.9
======== I-P1000850.jpg
Focal Length                    : 112.2
======== I-P1000851.jpg
Focal Length                    : 550
======== I-P1000860.jpg
Focal Length                    : 3.1
    4 image files read


for example.

Then I modify the values (to old analog values for example).

How can I write them back?

exiftool *.jpg -n -FocalLength<=mm1.txt
isn't working.

Should it be
exiftool *.jpg "-FocalLength<=mm1.txt"
?

Or what else?

Phil Harvey

The only format text file that exiftool accepts for writing different values to different files is the CSV format.  So try this:

exiftool *.jpg -n -csv -focallength > out.csv

then

exiftool *.jpg -n -csv=out.csv

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