Author Topic: Batch Copy Exif Data From One Field To another  (Read 2657 times)

johnjbloomfield

  • Newbie
  • *
  • Posts: 5
Batch Copy Exif Data From One Field To another
« on: February 16, 2017, 12:22:41 PM »
Is it possible to use this tool to copy data from one field to a new field?

Specifically from Lens Id to lens model as my software (ACDsee) only reads Lens Model but my camera (Pentax) only records lens under Lens ID.

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16687
    • ExifTool Home Page
Re: Batch Copy Exif Data From One Field To another
« Reply #1 on: February 16, 2017, 12:29:31 PM »
Sure.  The application documentation has many copying tags examples.  In your case the command could look like this:

exiftool "-lensmodel<lensid" 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 ($).

johnjbloomfield

  • Newbie
  • *
  • Posts: 5
Re: Batch Copy Exif Data From One Field To another
« Reply #2 on: February 16, 2017, 02:37:33 PM »
Would I need it to run as a command line tool for this?

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16687
    • ExifTool Home Page
Re: Batch Copy Exif Data From One Field To another
« Reply #3 on: February 16, 2017, 04:29:30 PM »
I think you may be able to do this through the GUI, but I don't know how.  The command I gave is for the command line.

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

johnjbloomfield

  • Newbie
  • *
  • Posts: 5
Re: Batch Copy Exif Data From One Field To another
« Reply #4 on: October 08, 2017, 07:49:36 AM »
Hi Phil

This has been working great for me but I have just noticed that a duplicate file without file type but with _original is created.

I have only just realised this as my photo management software ignores these files. - Is there anyway to avoid them being created as they take up quite a lot of space obviously I am manually deleting them now.

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16687
    • ExifTool Home Page
Re: Batch Copy Exif Data From One Field To another
« Reply #5 on: October 08, 2017, 08:02:43 AM »
By default exiftool backs up the original file by adding "_original" to the file name.

To avoid this, add -overwrite_original to the command.

To delete "_original" files that have already been created, do this:

exiftool -r -delete_original DIR

The -r recursively processes all subdirectories.

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

johnjbloomfield

  • Newbie
  • *
  • Posts: 5
Re: Batch Copy Exif Data From One Field To another
« Reply #6 on: October 08, 2017, 08:09:21 AM »
Thanks Phil

Much Appreciated.

Do you have a donate page or something for this program - I feel I should make some sort of payment for something this useful and so well supported via this forum.

johnjbloomfield

  • Newbie
  • *
  • Posts: 5
Re: Batch Copy Exif Data From One Field To another
« Reply #7 on: October 08, 2017, 08:15:35 AM »
found the donate page - donation made not a lot just a thank you really.

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16687
    • ExifTool Home Page
Re: Batch Copy Exif Data From One Field To another
« Reply #8 on: October 08, 2017, 03:30:23 PM »
I got the donation, thanks!

Glad to help.

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