-use MWG duplicates keywords in XML output

Started by Mac2, October 15, 2011, 02:58:35 AM

Previous topic - Next topic

Mac2

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.

Phil Harvey

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

Mac2

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.

Phil Harvey

Thanks for the sample, I can now reproduce this behaviour and will fix this in the next release.

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

Mac2