ExifTool Forum

ExifTool => Newbies => Topic started by: lorenzo2 on November 15, 2017, 11:41:04 PM

Title: Is it possible to change values under xmpmm:history of a psd file?
Post by: lorenzo2 on November 15, 2017, 11:41:04 PM
Hello,

I am new to exiftool, and I am curious whether it is possible to change the history of a psd file.

for example, I have

<xmpMM:History>
            <rdf:Seq>
               <rdf:li rdf:parseType="Resource">
                  <stEvt:action>created</stEvt:action>
                  <stEvt:instanceID>xmp.iid:be647935-0543-5e42-b22e-498577630ce3</stEvt:instanceID>
                  <stEvt:softwareAgent>Adobe Photoshop CC 2017 (Windows)</stEvt:softwareAgent>
                  <stEvt:when>2017-11-16T01:54:29Z</stEvt:when>
               </rdf:li>
               <rdf:li rdf:parseType="Resource">
                  <stEvt:action>saved</stEvt:action>
                  <stEvt:changed>/</stEvt:changed>
                  <stEvt:instanceID>xmp.iid:6113bbbd-136b-8547-a0e2-241196d66248</stEvt:instanceID>
                  <stEvt:softwareAgent>Adobe Photoshop CC 2017 (Windows)</stEvt:softwareAgent>
                  <stEvt:when>2017-11-16T02:31:41Z</stEvt:when>
               </rdf:li>
            </rdf:Seq>
         </xmpMM:History>

It is a random file that I created to play around exiftool. I did 2 actions here obviously, first was created file, second was changing a bit then save. Is it possible to change the stEvt:when values? As my friend told me that it was impossible to change this part.
Title: Re: Is it possible to change values under xmpmm:history of a psd file?
Post by: Stephen Marsh on November 16, 2017, 04:22:11 AM
Should be doable:

exiftool -XMP-xmpMM:HistoryWhen=

However you will probably need to format the bit after the = sign appropriately.
Title: Re: Is it possible to change values under xmpmm:history of a psd file?
Post by: Phil Harvey on November 16, 2017, 07:04:39 AM
Yes, you can do this.

See the XMP xmpMM Tags documentation (https://exiftool.org/TagNames/XMP.html#xmpMM) and the Structured tags documentation (https://exiftool.org/struct.html) for details.  And before you ask, you might also want to read FAQ number 5 (https://exiftool.org/faq.html#Q5).

- Phil
Title: Re: Is it possible to change values under xmpmm:history of a psd file?
Post by: lorenzo2 on November 17, 2017, 12:42:11 PM
Quote from: Stephen Marsh on November 16, 2017, 04:22:11 AM
Should be doable:

exiftool -XMP-xmpMM:HistoryWhen=

However you will probably need to format the bit after the = sign appropriately.

Quote from: Phil Harvey on November 16, 2017, 07:04:39 AM
Yes, you can do this.

See the XMP xmpMM Tags documentation (https://exiftool.org/TagNames/XMP.html#xmpMM) and the Structured tags documentation (https://exiftool.org/struct.html) for details.  And before you ask, you might also want to read FAQ number 5 (https://exiftool.org/faq.html#Q5).

- Phil

Thank you for clarifying. However I am still confused about changing the values inside xmpMM group after reading the documentation. I have tried to use the command

exiftool -XMP-xmpMM:HistoryWhen=2017:11:15 09:00

For which I am trying to set the date/time into 15/11/2017. However, I received a warning saying that Tag "xmpMM:HistoryWhen" is not defined. Sorry it might sounds a bit basic to you guys, but I am currently new to the field, and do not have much experiences in computing. Did I miss something in the command, and do I have to specific which event I am changing? (like in my example, I have 1 created action and 1 saved action)

Title: Re: Is it possible to change values under xmpmm:history of a psd file?
Post by: lorenzo2 on November 17, 2017, 12:43:37 PM
Quote from: lorenzo2 on November 17, 2017, 12:42:11 PM
Quote from: Stephen Marsh on November 16, 2017, 04:22:11 AM
Should be doable:

exiftool -XMP-xmpMM:HistoryWhen=

However you will probably need to format the bit after the = sign appropriately.

Quote from: Phil Harvey on November 16, 2017, 07:04:39 AM
Yes, you can do this.

See the XMP xmpMM Tags documentation (https://exiftool.org/TagNames/XMP.html#xmpMM) and the Structured tags documentation (https://exiftool.org/struct.html) for details.  And before you ask, you might also want to read FAQ number 5 (https://exiftool.org/faq.html#Q5).

- Phil

Thank you for clarifying. However I am still confused about changing the values inside xmpMM group after reading the documentation. I have tried to use the command

exiftool -XMP-xmpMM:HistoryWhen=2017:11:15 09:00

For which I am trying to set the date/time into 15/11/2017. However, I received a warning saying that Tag "xmpMM:HistoryWhen" is not defined. Sorry it might sounds a bit basic to you guys, but I am currently new to the field, and do not have much experiences in computing. Did I miss something in the command, and do I have to specific which event I am changing? (like in my example, I have 1 created action and 1 saved action)

A bit of clarification, the exact command I used is

exiftool -XMP-xmpMM:HistoryWhen="2017:11:15 09:00" xxxxx.psd
Title: Re: Is it possible to change values under xmpmm:history of a psd file?
Post by: Phil Harvey on November 17, 2017, 12:47:56 PM
Try updating to the current version of ExifTool.  This works for me with 10.67

- Phil
Title: Re: Is it possible to change values under xmpmm:history of a psd file?
Post by: lorenzo2 on November 17, 2017, 01:47:14 PM
Quote from: Phil Harvey on November 17, 2017, 12:47:56 PM
Try updating to the current version of ExifTool.  This works for me with 10.67

- Phil

It is working now, thanks for your help.