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
When you run the command mentioned in FAQ #3 (https://exiftool.org/faq.html#Q3), 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/
You're quite right.
Thanks a lot for your help !
JG