ExifTool Forum

ExifTool => Newbies => Topic started by: dbmayur on September 05, 2012, 10:26:11 PM

Title: Synchronizing EXIF Data Across Folders
Post by: dbmayur on September 05, 2012, 10:26:11 PM
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
Title: Re: Synchronizing EXIF Data Across Folders
Post by: Phil Harvey on September 06, 2012, 07:13:09 AM
Hi Mayur,

Try this:

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

- Phil
Title: Re: Synchronizing EXIF Data Across Folders
Post by: dbmayur on September 07, 2012, 03:45:20 AM
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
Title: Re: Synchronizing EXIF Data Across Folders
Post by: Phil Harvey on September 07, 2012, 07:14:36 AM
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