Synchronizing EXIF Data Across Folders

Started by dbmayur, September 05, 2012, 10:26:11 PM

Previous topic - Next topic

dbmayur

Hi Guys,

I've been struggling with a solution to this for a while. I hope I can find it here soon. Anyway, here's what I need to do

Folder A
Pic 1.jpg
Pic 2..jpg
Pic 3.jpg

Folder B
Pic 1.jpg
Pic 2..jpg
Pic 3.jpg


These two folders have files with the same names but the files in B are modified versions of files in A. I'd like to synchronize all the EXIF data of A into B.

I have a few thousand images.

Any solutions?

Thanks a lot in advance.

Regards,
Mayur

Phil Harvey

Hi Mayur,

Try this:

exiftool -tagsfromfile "Folder A/%f.%e" -all:all "Folder B"

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

dbmayur

Hey Phil,

Thanks a lot for helping me with this. The command does traverse the whole directory. However, I am getting this error:


C:\Temp\Test\Done>exiftool -tagsFromFile gps\%f.%e -exif:all nogps
Warning: [minor] Entries in IFD0 were out of sequence. Fixed. - nogps/2013.jpg
Error: [minor] IFD0 pointer references previous ExifIFD directory - nogps/2013.j
pg
Warning: [minor] Entries in IFD0 were out of sequence. Fixed. - nogps/2014.jpg
Error: [minor] IFD0 pointer references previous ExifIFD directory - nogps/2014.j
pg

    1 directories scanned
    1 image files updated
    2 files weren't updated due to errors

On the other hand, when I run the command individually, there's no problem.

C:\Temp\Test\Done>exiftool -all= -tagsFromFile gps\2013.jpg -exif:all nogps\2013
.jpg
    1 image files updated

C:\Temp\Test\Done>exiftool -all= -tagsFromFile gps\2014.jpg -exif:all nogps\2014
.jpg
    1 image files updated

Do you know what can fix it?

Regards,
Mayur

Phil Harvey

Hi Mayur,

Running ExifTool on one file or many won't make any difference.  The difference is that you added -all= to the command run on individual files.  This will delete all metadata, which solves the problem but is a bit brutal.  Instead, try adding the -m option to ignore the minor error.

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