Author Topic: Merging metadata of two copies of the same picture  (Read 331 times)

mastodon

  • Full Member
  • **
  • Posts: 180
Merging metadata of two copies of the same picture
« on: May 19, 2019, 04:30:32 PM »
I have accidentally face tagged my pictures with Piacasa in a temp folder, and the same time geotagged with IMatch in my store folder. So I have two copies of the same pictures with different metadata, that have to be merged. I forgot that I use Picasa on files in a temp folder...
Is there an easy way to merge the metadata of the two files in one file, or copy the data they are different to the other file?

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 23018
Re: Merging metadata of two copies of the same picture
« Reply #1 on: May 19, 2019, 05:37:17 PM »
There is no "merge metadata of different files" feature in IMatch.

Consider using a (temporary) file relation to propagate selected data from the files in the TEMP folder to the real files.
Or, unless you have many files, use Copy / Paste Attributes.
Or maybe an ExifTool command line ARG file.
Or a custom IMatch app.


mastodon

  • Full Member
  • **
  • Posts: 180
Re: Merging metadata of two copies of the same picture
« Reply #2 on: May 19, 2019, 08:50:01 PM »
Yes, that was not my ordinary workflow. I forgot, that I face tagged this pictures in my SSD, what is quicker...
sorry to bother you with a qusetion not related to IMatch.
Might you know, how should I use Exiftool in batch mode? Ex I have pictures: 1234Ftag.jpg and 1234Gtag.jpg etc. in one directory. I think, I should copy face tag data (made by Picasa) from 1234Ftag.jpg to 1234Gtag.jpg. It is easiser to do this, than copy GPS and location data. A I found that I have to use "addtagsfromfile" command, but don't know, how to use it in a batch. (305 files)

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 23018
Re: Merging metadata of two copies of the same picture
« Reply #3 on: May 19, 2019, 09:24:33 PM »
I can only link to the ExfTool FAQ: https://sno.phy.queensu.ca/~phil/exiftool/faq.html

Copying data between files using wild cards can be tricky, but the FAQs have some examples for that.
Otherwise, ask in the ExifTool forum for advice.

mastodon

  • Full Member
  • **
  • Posts: 180
Re: Merging metadata of two copies of the same picture
« Reply #4 on: May 19, 2019, 10:36:31 PM »

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 23018
Re: Merging metadata of two copies of the same picture
« Reply #5 on: May 19, 2019, 11:13:09 PM »
See?

PaulS

  • Jr. Member
  • *
  • Posts: 74
Re: Merging metadata of two copies of the same picture
« Reply #6 on: May 21, 2019, 01:54:50 AM »
I have used the ExifTool Command Processor in IMatch to copy face tags from copies of files with Picasa (3.9.139) face tags to selected files.  The Picasa files had the same names as the selected files but were in a subdirectory (named PICASA).

The commands I used are shown below, with "Run for each file in selection" chosen.

    -TagsFromFile
    {File.Path}PICASA\{File.Name}.jpg
    -XMP-mwg-rs:all<all
    {File.Path}{File.Name}.jpg

Of course you can relatively easily adapt the filename and path to your situation.

Make sure you have backups before you try this.

mastodon

  • Full Member
  • **
  • Posts: 180
Re: Merging metadata of two copies of the same picture
« Reply #7 on: May 21, 2019, 08:25:46 PM »
Thanks, even better!