ExifTool Forum

ExifTool => Newbies => Topic started by: trust-me5 on May 03, 2012, 10:07:08 PM

Title: how to write exif informations back from a modified text file
Post by: trust-me5 on May 03, 2012, 10:07:08 PM
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?
Title: Re: how to write exif informations back from a modified text file
Post by: Phil Harvey on May 04, 2012, 06:44:52 AM
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