Possible minor bug in XMP-rdf:About tag

Started by StarGeek, September 25, 2014, 02:29:15 PM

Previous topic - Next topic

StarGeek

I've noticed that the XMP-rdf group seems to work a bit differently than other xmp groups.  I have some files with the XMP-rdf:About tag set.  If I try to clear out that tag group using -XMP-rdf:all=, the file is unchanged.  It will only get removed if I clear the XMP-rdf:About tag directly (-XMP-rdf:About=).  Additionally, even after I've cleared that tag, if I clear it again, ExifTool will say the file has been updated, even though there isn't any change to be made.  This is different than my experiences with other tags.


C:\>exiftool -ver
9.67

C:\>exiftool -about=Test x:\!temp\Test.jpg
    1 image files updated

C:\>exiftool -g1 -XMP-rdf:all x:\!temp\Test.jpg
---- XMP-rdf ----
About                           : Test

C:\>exiftool -XMP-rdf:all= x:\!temp\Test.jpg
    0 image files updated
    1 image files unchanged

C:\>exiftool -g1 -XMP-rdf:all x:\!temp\Test.jpg
---- XMP-rdf ----
About                           : Test

C:\>exiftool -XMP-rdf:about= x:\!temp\Test.jpg
    1 image files updated

C:\>exiftool -g1 -XMP-rdf:all x:\!temp\Test.jpg

C:\>exiftool -XMP-rdf:about= x:\!temp\Test.jpg
    1 image files updated
"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

Phil Harvey

Quote from: StarGeek on September 25, 2014, 02:29:15 PM
I've noticed that the XMP-rdf group seems to work a bit differently than other xmp groups.  I have some files with the XMP-rdf:About tag set.  If I try to clear out that tag group using -XMP-rdf:all=, the file is unchanged.

Yes.  This tag is considered "unsafe" to change, so it isn't affected when writing with wildcards.

QuoteAdditionally, even after I've cleared that tag, if I clear it again, ExifTool will say the file has been updated, even though there isn't any change to be made.

Yes.  This is consistent.  If you write the same value for any tag, exiftool will always say the file was updated.  It doesn't check to see if the existing value was the same or not.

QuoteThis is different than my experiences with other tags.

The difference is that you are not allowed to delete rdf:about, so instead ExifTool writes an empty string.  And writing the same thing a second time should always give a "file updated" message, even if it was an empty string.

- Phil
...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 ($).