Author Topic: How to delete Metadata (Junk, Old, useless, unsupported by IMatch)  (Read 2772 times)

Menace

  • Hero Member
  • ***
  • Posts: 587
Hi!

Every now and than I have problems to write back metadata. I'm not sure, which metadata-field made this errors, but I want to get rid off Metadata which was written with other software (like IDimager, Photosupreme, MS Media Expression, Media Pro, ACDSee).

For example there are old fields with old file-names which are already changed. IMatch don't know every old software and where this software wright all this stuff. And I don't want to delete all of the Metadata, just parts of it.

So I test some Code (Just trying it out until I understand how it works a little, because I didn't work with commandolines yet). I use another tools for checking the metadata Exiftool Gui: http://u88.n24.queensu.ca/~bogdan/

Here ist my code I use:

Code: [Select]
-overwrite_original_in_place
-charset
FILENAME=UTF8
 -XMP-xap:all=
-XMP-ics:all=
-XMP-tiff:software=
-XMP-dc:Title=
-XMP-xmpMM:PreservedFileName=
-XMP:Artist=
-exif:DocumentName=
-exif:Software=
-IPTC:OriginatingProgram=
-IPTC:ObjectName=
-IPTC:Keywords=
-XMP-Microsoft:all=
-XMP-ACDSee:all=
{Files}

Code: [Select]
-overwrite_original_in_placeThis is the start to delete or change the fields you don't need anymore.

Code: [Select]
-charset
FILENAME=UTF8
This helps exiftool Kommandoprozessor to find a file even when the folders contain Umlaute like ä, ü.... [Thanks Mario for founding this]

Code: [Select]
-XMP-xap:all= If I understand it correct, XAP is the old name (old software wrote it) for XMP. This solves a lot of rightback issues in IMatch.

Code: [Select]
-XMP-ics:all=This removes all the IDimagers own way to write hierarchical keywords (see attachment). After importing my files in IMatch I don't need this stuff anymore.

Code: [Select]
-XMP-dc:Title=
-XMP-xmpMM:PreservedFileName=
-IPTC:ObjectName=
-exif:DocumentName=
Every Programm write the file-Name in another Metadata field. This is very confusing and there is no need, so I get rid off this old names with this codes.

Code: [Select]
-XMP-Microsoft:all=Also Microsoft confuses me. Some a ratings in percent, others in Stars/Points. Also write some MS-Software the name again in Metadata-Fields IMatch doesn't use.

Code: [Select]
-IPTC:OriginatingProgram=
-XMP-tiff:software=
I don't want to make advertising for software, which spoiled my data. So this commando deletes Advertising for PhotoSupreme and IDimager.

With older files -I'm sure-, I found other junk-stuff (even IMatch wrote it's own XMP IMatch; I am not sure if it is necessary) and than I can post the code here.

Edit: Already found:
Delete ACDSee-Data:
Code: [Select]
-XMP-ACDSee:all=
And forgot to mention:
Code: [Select]
{Files}This is important and means that the the current selected files get "cleanded up".
Have you also Code to clean up your Metadata?

[attachment deleted by admin]
« Last Edit: February 24, 2016, 09:03:12 AM by Menace »

Menace

  • Hero Member
  • ***
  • Posts: 587
Re: How to delete Metadata (Junk, Old, useless, unsupported by IMatch)
« Reply #1 on: February 24, 2016, 08:39:08 AM »
Currently I found a little more confusing stuff:

I have some old "keywords" inside of {File.MD.IPTC::ApplicationRecord\25\Keywords\0} which are not uptodate.

After I delete them with
Code: [Select]
-IPTC:Keywords= IMatch want to write again the now current Keywords back, even if it is a hierarchical keyword.

But I thought hierarchical keywords should just written in DC and LR?

sinus

  • Global Moderator
  • *****
  • Posts: 4342
  • IMatch-User since 2001 (IMatch 3.6)
Re: How to delete Metadata (Junk, Old, useless, unsupported by IMatch)
« Reply #2 on: February 24, 2016, 08:52:18 AM »
Hi Menace

I am afraid, I cannot help here. But thanks for sharing your work!!
Best wishes from Switzerland! :-)
Markus

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 28532
Re: How to delete Metadata (Junk, Old, useless, unsupported by IMatch)
« Reply #3 on: February 24, 2016, 10:48:43 AM »
Quote
IMatch want to write again the now current Keywords back, even if it is a hierarchical keyword.

IMatch, using MWG and the default settings, updates XMP-dc:subject (flat XMP keywords) and IPTC:keywords from hierarchical keywords on write-back. That's part of the MWG mapping.

Menace

  • Hero Member
  • ***
  • Posts: 587
Re: How to delete Metadata (Junk, Old, useless, unsupported by IMatch)
« Reply #4 on: February 24, 2016, 11:53:40 AM »
Ok, so I remember it wrong. That IMatch is using MWG as default is for me most important part in IMatch.

In my files the XMP-dc:subject seems to be written as hierarchical keywords, but maybe this is because of "Schlüsselwort Export: [X]Hierarchische Schlüsselwörter schreiben."

IMatch is very smart to recognize, that the old ITPC-fields are deleted and want to write the current keywords. Nice! :)

Kukn

  • New Members
  • *
  • Posts: 22
Re: How to delete Metadata (Junk, Old, useless, unsupported by IMatch)
« Reply #5 on: March 10, 2016, 08:35:11 PM »
[GERMAN]
Danke für Deine Vorlage.
Das wollte ich bei meinen Bildern schon immer in Angriff nehmen. Jetzt habe ich mich mal an den Kommandoprozessor gewagt. Klappt prima!

Hab noch das Feld: "-IPTC:ProgramVersion="
eingefügt (bei mir mit iDi-Version gefüllt).

Danke und Grüße von Kay

novaca

  • New Members
  • *
  • Posts: 3
Re: How to delete Metadata (Junk, Old, useless, unsupported by IMatch)
« Reply #6 on: March 11, 2021, 06:29:41 PM »
Thanks, It works great - with embedded tags (jpg, tif ...),
but how would I have to modify this code to work the same with the buddy xmp file?
Thanks for the help.

novaca

  • New Members
  • *
  • Posts: 3
Re: How to delete Metadata (Junk, Old, useless, unsupported by IMatch)
« Reply #7 on: March 11, 2021, 06:44:57 PM »
ou, solved ...
{XMPFiles}

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 28532
Re: How to delete Metadata (Junk, Old, useless, unsupported by IMatch)
« Reply #8 on: March 13, 2021, 08:20:49 PM »
Usually, XMP files contain only useful data.