TagFromFile to copy EXIF from ARW to jpeg...

Started by nucleon, October 07, 2019, 08:14:14 PM

Previous topic - Next topic

nucleon

Frustrated Newbie here...

Thanks to Luminar's limitations, the images I process from Sony RAW (ARW) are exported as jpeg's with EXIF's stripped and dates set to the time of export.  My goal is to transfer the dates and GPS info at the very least. I am trying to use ExifTool to batch process a folder at a time. The source raw folders have file name ABCxxxx.ARW, and the exported images (in another folder) have file name ABCxxx.jpeg.

I was able to process one image, but the date of the target just became the time at which I had run ExifTool. Haven't been able to get the batch running at all.

I'm sure there is something simple I'm missing.

Thank you in advance!

Phil Harvey

Try this:

exiftool -tagsfromfile RAWDIR/%f.ARW -alldates -gps:all "-filemodifydate<datetimeoriginal" -ext jpg JPGDIR

Where RAWDIR and JPGDIR are the paths to the raw and jpg files respectively.  You can drag and drop the folders onto the cmd.exe window instead of typing the paths, but make sure you add a space before you drop the folder.

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

nucleon

Wow, thanks for the rapid response! I'm on a Mac so I'll make the appropriate adjustments and report back...

nucleon


nucleon

Not to look a gift horse in the mouth, but one more question on this...

The folders of the originals contain both RAW/ARW and JPG's, the latter from iphone mainly. Is there a way to modify the script that will do all photos in the folder?


Phil Harvey

I don't understand.  There are some JPG's in RAWDIR that you also want to process?  You want to read date/time info from ARW's for these?  But the iPhone pictures won't have ARW files.

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

nucleon

Sorry, I wasn't at all clear on that!

The folders that contain the ARW's also contain some JPG's that were acquired contemporaneously with my iPhone. I used Luminar to export all of them to the "jpeg" directory. It occurs to me that I'm making this unduly complicated. I'll just copy the JPG's themselves into the exported image folder.

Sometimes the easy solution is the best solution!!!!

(I'm so embarrassed!!)

Phil Harvey

I see.  You have a solution, but for reference here is the way you could have modified the command to copy tags from JPG and/or ARW files:

exiftool -tagsfromfile RAWDIR/%f.ARW -alldates -gps:all "-filemodifydate<datetimeoriginal" -tagsfromfile RAWDIR/%f.JPG -alldates -gps:all "-filemodifydate<datetimeoriginal" -ext jpg JPGDIR

The command would give warnings for missing ARW and JPG files in RAWDIR, but would copy the tags from the one of these that existed.

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