Author Topic: Copying EXIF from all the files in one directory to another directory  (Read 838 times)

yusheng

  • Newbie
  • *
  • Posts: 3
So I have one directory with hundreds of JPG files, and another directory with the same JPG filenames but in this second directory, all the EXIF are stripped.

Dir1/0001.jpg
Dir1/0002.jpg
...

and

Dir2/0001.jpg
Dir2/0002.jpg
...

How can I copy all the EXIF from Dir1's files to Dir2's files without doing it one by one?

Thanks!

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16899
    • ExifTool Home Page
Re: Copying EXIF from all the files in one directory to another directory
« Reply #1 on: September 28, 2015, 08:40:19 AM »
I think this is the command you want:

exiftool -tagsfromfile Dir1/%f.%e -all:all Dir2

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