Author Topic: Batch copy all exif data from JPG to DNG for multiple images  (Read 1861 times)

am3ncorn3r

  • Newbie
  • *
  • Posts: 2
Is this possible? I have about 30 or so images I need to copy all the exif data from the JPG's to the DNG files. When doing this on my Mac I can copy the entire string exiftool -tagsfromfile Image01.jpg image02.dng then run and then paste this string in the next line but its tedious to have to click and delete each image number to go copy the next image. I was hoping for a way to tell exiftool to look in the folder then copy all exif data from the jpg images and paste it on the cooresponding DNG images.

StarGeek

  • Global Moderator
  • ExifTool Freak
  • *****
  • Posts: 3803
Re: Batch copy all exif data from JPG to DNG for multiple images
« Reply #1 on: May 08, 2018, 10:49:10 PM »
What are the names of the files.  If you're trying to copy from Image01.jpg to image02.dng (different numbers), then that would be hard.  If it's from Image01.jpg to image01.dng, then that's much easier.  Something like this copying example.

exiftool -ext dng -tagsfromfile %d%f.jpg /path/to/target/files/
Troubleshooting hints:
* When posting, include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).
* Double all percent signs (%) in a Windows batch file.
* If your GPS coords are negative, make sure and set the GpsLatitudeRef and GpsLongitudeRef tags correctly.

am3ncorn3r

  • Newbie
  • *
  • Posts: 2
Re: Batch copy all exif data from JPG to DNG for multiple images
« Reply #2 on: May 09, 2018, 07:39:06 AM »
Yes sorry it would be image01.jpg to image01.dng and so forth down the line.

popotato

  • Newbie
  • *
  • Posts: 2
Re: Batch copy all exif data from JPG to DNG for multiple images
« Reply #3 on: July 29, 2018, 05:35:46 PM »
Following this guide i have successfully copied the exif data from .mov to .mp4 files on my mac, but how do I copy the location and camera information as well in batch?

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16724
    • ExifTool Home Page
Re: Batch copy all exif data from JPG to DNG for multiple images
« Reply #4 on: July 30, 2018, 07:33:12 AM »
That command should already copy EXIF GPS location and camera information.

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

popotato

  • Newbie
  • *
  • Posts: 2
Re: Batch copy all exif data from JPG to DNG for multiple images
« Reply #5 on: July 30, 2018, 10:36:19 AM »
I tried but i dont know why when I import the files to the mac Photos App it does not show any camera or geotag information, and due to time zone differences the date and time is also different from the original. Does the photos app use another set of information?

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16724
    • ExifTool Home Page
Re: Batch copy all exif data from JPG to DNG for multiple images
« Reply #6 on: July 30, 2018, 10:50:52 AM »
Sorry, I can't answer about which software uses what metdata.  That is a question for the other software's forum.

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