photools.com Community

IMatch Discussion Boards => FAQ, Workflow, Tutorials, Tips & Tricks => Metadata => Topic started by: mastodon on May 19, 2019, 04:30:32 PM

Title: Merging metadata of two copies of the same picture
Post by: mastodon 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?
Title: Re: Merging metadata of two copies of the same picture
Post by: Mario 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.

Title: Re: Merging metadata of two copies of the same picture
Post by: mastodon 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)
Title: Re: Merging metadata of two copies of the same picture
Post by: Mario 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.
Title: Re: Merging metadata of two copies of the same picture
Post by: mastodon on May 19, 2019, 10:36:31 PM
Thanks. I have found a solution on the Exiftool forum - Batch copy metadata from a folder to subfolder (http://u88.n24.queensu.ca/exiftool/forum/index.php/topic,8644.0.html).
Title: Re: Merging metadata of two copies of the same picture
Post by: Mario on May 19, 2019, 11:13:09 PM
See?
Title: Re: Merging metadata of two copies of the same picture
Post by: PaulS 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.
Title: Re: Merging metadata of two copies of the same picture
Post by: mastodon on May 21, 2019, 08:25:46 PM
Thanks, even better!