can't seem to delete adam metadata

Started by leondona, June 12, 2019, 03:43:25 AM

Previous topic - Next topic

leondona


Hi Everyone,

really new here, so i'm sorry if i am asking a stupid question, but i can't seem to figure it out myself.

i have .psd files which contain a lot of legacy Adam metadata i want to delete (like 15MB!). I want to retain the other metadata.

The metadata in the .psd looks like this.

<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.6-c138 79.159824, 2016/09/14-01:09:01        ">
   <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
      <rdf:Description rdf:about=""
            xmlns:adam="http://ns.alfaprint.be/PreviewAdder/"
          ....
         <adam:metadata rdf:parseType="Resource">
            <adam:creator rdf:parseType="Resource">
               <adam:platform>Windows</adam:platform>
               <adam:version>5.5</adam:version>
            </adam:creator>
            <adam:page1 rdf:parseType="Resource">
               <adam:preview>ffd8ffe0001
            ....
          </adam:metadata>
         <photoshop:ColorMode>3</photoshop:ColorMode>
           ......

i tried this:
H:\>exiftool -adam= c:\temp\tempie\temp1.psd
i get tag 'Adam'not defined.

i tried this:

H:\>exiftool -adam:all= c:\temp\tempie\temp1.psd
i get Not a deletable group:adam

t tried this:
exiftool -adam:metadata= c:\temp\tempie\temp1.psd
i get Sorry, adam:metadata doesn't exist or isn't writable


the only option that works is delete all metadata, but i want to keep the rest:
exiftool -all= c:\temp\tempie\temp1.psd

Can anyone help me? I don't know what i am doing wrong.

thanks in advance!

Leon




StarGeek

Try running exiftool -a -s -G1 on the file.  That will give you the group name for the adam data.  It will look something like this example:
[XMP-dc]        Description                     : test

Take the group name (XMP-dc in the above example, your data will be different) and clear all of that group.  In the above example, it would be -XMP-dc:all=

Sorry, but I've never encountered adam XMP data, so I can't be more specific. 
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

leondona

Yes! thanks! Figured it out:

exiftool -XMP-adam:all= c:\temp\tempie\temp1.psd

:)

Phil Harvey

I'm glad you figured it out.

For reference, this is mentioned in the XMP Tags documentation:

The tags of any namespace may be deleted as a group by specifying the family 1 group name (eg. "-XMP-dc:all=" on the command line). This includes namespaces which are not pre-defined by ExifTool.
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).