batch add individual dates to photos..

Started by minovsky, August 27, 2015, 11:00:02 AM

Previous topic - Next topic

minovsky

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!)

Phil Harvey

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

minovsky

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!!

Phil Harvey

This is all explained in the application documentation.  See the -tagsFromFile section and the 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
...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 ($).

minovsky

thanks!! this is really helpful. I almost thought it's an impossible task but now I got it done in a minute