ExifTool Forum

General => Metadata => Topic started by: minovsky on August 27, 2015, 11:00:02 AM

Title: batch add individual dates to photos..
Post by: minovsky on August 27, 2015, 11:00:02 AM
Hi new here. I recently just switched to a7 and made the mistake of turning on the D-range optimiser mode when shooting in RAW... some of the optimised pictures look really good so I extracted the jpeg preview images in the raw using exiftool just to show my family. But I notice that there is no exif data in these extracted images.. Is it possible to write a date to the jpeg with exiftool so they will sort correctly chronologically when i share the pictures, and if so is there an automatic way to iterate through the original raw, extract the date, and write it back to the preview image (filename are the same except for the extension of course) with the same filename (different extension of course!)
Title: Re: batch add individual dates to photos..
Post by: Phil Harvey on August 27, 2015, 11:16:21 AM
Sure.  Try this command to copy from DNG to JPEG (assuming same-named files in the same directory):

exiftool -tagsfromfile %d%f.dng -all:all -ext jpg DIR

- Phil
Title: Re: batch add individual dates to photos..
Post by: minovsky on August 27, 2015, 11:23:49 AM
oh wow that's quick! (both the reply and the solution!!)

Just out of curiosity for me to learn more about exiftool.

1) What if the raw and the jpg are in different folders?
2) what other options are there besides the "all"?

Thanks!!
Title: Re: batch add individual dates to photos..
Post by: Phil Harvey on August 27, 2015, 11:25:18 AM
This is all explained in the application documentation (https://exiftool.org/exiftool_pod.html).  See the -tagsFromFile section and the COPYING EXAMPLES (https://exiftool.org/exiftool_pod.html#copying_examples).

But to quickly answer your questions: 

1) You can specify a different dng directory in place of "%d" in the command I gave.

2) You can specify any tag or tags you want to copy instead of -all:all.  (-all is the default, but -all:all will preserve the metadata locations so it is probably what you want in this case, or you could say -exif:all if you want just EXIF, or list individual tags to copy if you want, or move tags to different places... the possibilities are endless.)

- Phil
Title: Re: batch add individual dates to photos..
Post by: minovsky on August 27, 2015, 11:48:36 AM
thanks!! this is really helpful. I almost thought it's an impossible task but now I got it done in a minute