M
M
Mikhail Lyalin2020-09-12 09:12:02
Photo
Mikhail Lyalin, 2020-09-12 09:12:02

How to recover photo dates from EXIF ​​for file copies in other directories?

There are catalogs by years, etc. with original JPEG files that have the correct shooting dates in EXIF.

There are directories on other media with copies of these files whose EXIF ​​dates are incorrect.

How to batch restore shooting dates from EXIF ​​of original files in Windows in copies, taking into account different disks, different directories, but the same file names?

More details, please!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
ComodoHacker, 2020-09-12
@ComodoHacker

Let's break the task into parts.

  1. Iterate over files with invalid EXIF.
  2. For each file, find the corresponding file with the correct EXIF.
  3. Overwrite EXIF.

Item 1, I believe, is implemented with a simple for /r
Item 2 can also be implemented with for /r, but I think it would be better to list the source files in advance with dir /b /s > list.txt
And search with the find command. For step 3, the ExifTool
utility is suitable . The -tagsFromFile key is used to copy information from another file.

D
Dimonchik, 2020-09-12
@dimonchik2013

total commander and comparison of directories
in one shove everything with EXIF ​​- there will be a big BIGDIR - here you can make copies of it
in the second one - the reference one, there are no exif names, rip
off, leave only those that match in name from the first one,
take a copy of BIGDIR again and adjust the second reference
copy, make copies so that not be afraid to lose the last copy,
well, or half an hour - an hour in Python

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question