ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: Mac2 on October 15, 2011, 02:58:35 AM

Title: -use MWG duplicates keywords in XML output
Post by: Mac2 on October 15, 2011, 02:58:35 AM
When I run the following command line

exiftool -G -X -D -f -t -l -use mwg "c:\image1.jpg" > output.xml

the resulting output file contains a duplicated <bag> node for the MWG composite keywords:

<MWG:Keywords>
    <rdf:Description et:id='Keywords' et:table='Composite'>
        <et:desc>Keywords</et:desc>
        <et:prt>
            <rdf:Bag>
                <rdf:li>DEU</rdf:li>
                <rdf:li>Deutschland</rdf:li>
                <rdf:li>entertainment</rdf:li>
                <rdf:li>events</rdf:li>
            </rdf:Bag>
        </et:prt>
        <et:val>
            <rdf:Bag>
                <rdf:li>DEU</rdf:li>
                <rdf:li>Deutschland</rdf:li>
                <rdf:li>entertainment</rdf:li>
                <rdf:li>events</rdf:li>
            </rdf:Bag>
        </et:val>
    </rdf:Description>
</MWG:Keywords>


Notes:

I tested the last couple of exiftool.exe versions but all show the same behavior.
The source image contains both IPTC and XMP keywords.
Neither IPTC:Keywords nor XMP:subject are duplicated. Only the MWG composite keywords.
I can supply the original image if needed.
Title: Re: -use MWG duplicates keywords in XML output
Post by: Phil Harvey on October 15, 2011, 07:18:01 AM
I can't reproduce this behaviour, so if you could send a sample to philharvey66 at gmail.com it would be useful.

While the design is to suppress the <et:val> (numerical) values if they are the same as the <et:prt> (print-converted) values, technically it is not an error to include both in the output file.

- Phil
Title: Re: -use MWG duplicates keywords in XML output
Post by: Mac2 on October 15, 2011, 08:37:11 AM
Hi, Phil

thank you for looking into this. I will send you the original file per email.

I reported this because it happens only with this file (?) and only with the MWG keywords.
Title: Re: -use MWG duplicates keywords in XML output
Post by: Phil Harvey on October 15, 2011, 10:55:52 AM
Thanks for the sample, I can now reproduce this behaviour and will fix this in the next release.

- Phil
Title: Re: -use MWG duplicates keywords in XML output
Post by: Mac2 on October 15, 2011, 11:54:42 AM
Great  :)

As always, thank you very much!