Problem with Scene tag

Started by jgautier2, May 29, 2020, 02:26:31 AM

Previous topic - Next topic

jgautier2

Hi,

I have a strange problem with the Scene XMP tag : some curious data remains in it, and I don't understand why.

Using the file attached with this post, I got these results using these commands :


exiftool -xmp:Scene HL_WESTEVE_1135560.jpg
Scene                           : scene


That's fine.
Now, I try to empty the Scene tag using this command :


exiftool -xmp:Scene="" HL_WESTEVE_1135560.jpg
    1 image files updated


It seems to be ok, and if I open this updated file with Photoshop, the Scene tag is quite empty.
But, when I read this updated file with exiftool :


exiftool -xmp:Scene HL_WESTEVE_1135560.jpg
Scene                           : AutoHDR


Now, the string "AutoHDR" appears in the scene tag.
I can't understand why...

When I open this updated file with PS, and look at raw xml data, I find this peace of code :

      <rdf:Description rdf:about=""
            xmlns:OPMedia="http://ns.oneplus.com/media/1.0">
         <OPMedia:CaptureMode>Photo</OPMedia:CaptureMode>
         <OPMedia:IsHDRActive>False</OPMedia:IsHDRActive>
         <OPMedia:IsNightModeActive>False</OPMedia:IsNightModeActive>
         <OPMedia:LensFacing>Back</OPMedia:LensFacing>
         <OPMedia:Scene>AutoHDR</OPMedia:Scene>
      </rdf:Description>


It seems to be stuff managed by OnePlus camera, as I can understand.
And there's a OPMedia:Scene tag that contains "AutoHDR".
So, It seems that exiftool read this tag instead of regular xml tag.

Anyway, I have three questions :
- what is the best way to empty the Scene tag (or any other tag) ?
- how to make sure that exiftool read regular xml scene tag (and not OPMedia:Scene tag) ?
- is there a way to remove all the OPMedia tags using exiftool ?

Thanks a lot your your answer.

J. Gautier



StarGeek

When you run the command mentioned in FAQ #3, you will see that there are duplicate tags with the same name.
C:\>exiftool -G1 -a -s -scene Y:\!temp\st\HL_WESTEVE_1135560.jpg
[XMP-OPMedia]   Scene                           : AutoHDR
[XMP-iptcCore]  Scene                           : scene


I don't believe Exiftool has definitions for any of the XMP-OPMedia tags, so they can't be edited/removed on an individual basis.  You can remove all the XMP-OPMedia tags with
exiftool -XMP-OPMedia:all= /path/to/file/
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

jgautier2

You're quite right.
Thanks a lot for your help !

JG