Author Topic: how to write exif informations back from a modified text file  (Read 1625 times)

trust-me5

  • Newbie
  • *
  • Posts: 1
I have used the command
exiftool *.jpg -n -FocalLength > mm1.txt

The file mm1.txt contains then

Code: [Select]
======== 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

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 14759
    • ExifTool Home Page
Re: how to write exif informations back from a modified text file
« Reply #1 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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).