<br><br><div class="gmail_quote">2009/3/17 Gilles Caulier <span dir="ltr"><<a href="mailto:caulier.gilles@gmail.com">caulier.gilles@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><br><div class="gmail_quote">2009/3/16 Sylvain CROUZILLAT <span dir="ltr"><<a href="mailto:sylvain.crouzillat@croucrou.com" target="_blank">sylvain.crouzillat@croucrou.com</a>></span><div><div></div><div class="h5">
<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
hi<br><br>"Impossible n'est pas français" i think it could be translate by "impossible is not french"<br><br>after you answer i have done many test.<br><br>digikam read Tags from NX and NX read tags from digikam<br>
<br>the probleme is with stars (rating)<br><br>digikam read start put with capture NX but NX don't read stars put with digikam<br><br> i use exiv2 -pxi<br>to see diffrences.<br><br>digikam put rating in Xmp.xmp.Rating<br>
and NX put rating in Xmp.xmp.Rating and Xmp.MicrosoftPhoto_1_.Rating<br><br>behind i have put exemple for 12345 stars<br><br><br>For zero star :<br>Xmp.xmp.Rating XmpText 1 0<br>Xmp.MicrosoftPhoto_1_.Rating XmpText 1 0<br>
<br>For one star :<br>Xmp.xmp.Rating XmpText 1 1<br>Xmp.MicrosoftPhoto_1_.Rating XmpText 1 1<br><br>For two stars :<br>Xmp.xmp.Rating XmpText 1 2<br>
Xmp.MicrosoftPhoto_1_.Rating XmpText 2 25<br><br>For tree stars :<br>Xmp.xmp.Rating XmpText 1 3<br>Xmp.MicrosoftPhoto_1_.Rating XmpText 2 50<br>
<br>For Four stars :<br>Xmp.xmp.Rating XmpText 1 4<br>Xmp.MicrosoftPhoto_1_.Rating XmpText 2 75<br><br>For five stars : <br>Xmp.xmp.Rating XmpText 1 5<br>
Xmp.MicrosoftPhoto_1_.Rating XmpText 2 99<br><br></blockquote></div></div><div><br>ok. After to check your pictures send in private, i can said that Nikon developper are wrong.<br><br>The official XMP tags, used by digiKam for Rating and defined in XMP paper from Adobe is :<br>
<br>Xmp.xmp.Rating : as int value. digiKam set 0 to 5 as espected.<br><br><a href="http://www.exiv2.org/tags-xmp-xmp.html" target="_blank">http://www.exiv2.org/tags-xmp-xmp.html</a><br><br>Microsoft use a dedicated namespace (the second part of xmp tag name), named "MicrosoftPhoto", not "MicrosoftPhoto_1_"<br>
<br>Look here :<br><br>Exiv2 : <a href="http://dev.exiv2.org/repositories/entry/exiv2/trunk/src/properties.cpp?rev=1750" target="_blank">http://dev.exiv2.org/repositories/entry/exiv2/trunk/src/properties.cpp?rev=1750</a> line 98<br>
<br>To Andreas : Why Xmp.MicrosoftPhoto namespace is not listed in tags reference from Exiv2 web project page :<br>
<br><a href="http://www.exiv2.org/metadata.html" target="_blank">http://www.exiv2.org/metadata.html</a><br><br>and <br><br>ExifTool : <a href="http://www.sno.phy.queensu.ca/%7Ephil/exiftool/TagNames/XMP.html#Microsoft" target="_blank">http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/XMP.html#Microsoft</a><br>
<br>And nothing else.<br><br>For me, Nikon use "MicrosoftPhoto_1_" and it's an error or a bug. This is want mean that image rated with M$ product are not visible in Nikon NX. Great !<br><br>Of course, i can patch digiKam to take a care about this Nikon tag...<br>
<br>What do you think about ?<br><br></div></div>Gilles<br>
</blockquote></div><br><br>Sylvain, Andreas,<br><br>I have found the problem. it come from Exiv2 !!!<br><br>If i dump one of your test jpeg image, i can see this XMP content :<br><br><x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Public XMP Toolkit Core 3.5"> <br>
<rdf:RDF xmlns:rdf="<a href="http://www.w3.org/1999/02/22-rdf-syntax-ns#">http://www.w3.org/1999/02/22-rdf-syntax-ns#</a>"> <br> <rdf:Description rdf:about="" <br>
xmlns:xap="<a href="http://ns.adobe.com/xap/1.0/">http://ns.adobe.com/xap/1.0/</a>"> <br> <xap:Rating>1</xap:Rating> <br>
</rdf:Description> <br> <rdf:Description rdf:about="" <br>
xmlns:MicrosoftPhoto="<a href="http://ns.microsoft.com/photo/1.0">http://ns.microsoft.com/photo/1.0</a>"> <br> <MicrosoftPhoto:Rating>1</MicrosoftPhoto:Rating> <br>
</rdf:Description> <br> <rdf:Description rdf:about="" <br>
xmlns:dc="<a href="http://purl.org/dc/elements/1.1/">http://purl.org/dc/elements/1.1/</a>"> <br> <dc:description> <br>
<rdf:Alt> <br> <rdf:li xml:lang="x-default">(c) <a href="mailto:Sylvain.CROUZILLAT@CROUCROU.COM">Sylvain.CROUZILLAT@CROUCROU.COM</a> </rdf:li> <br>
</rdf:Alt> <br> </dc:description> <br>
<dc:subject> <br> <rdf:Bag> <br>
<rdf:li>Mariage</rdf:li> <br> </rdf:Bag> <br>
</dc:subject> <br> </rdf:Description> <br>
<rdf:Description rdf:about="" <br> xmlns:photoshop="<a href="http://ns.adobe.com/photoshop/1.0/">http://ns.adobe.com/photoshop/1.0/</a>"> <br>
<photoshop:DateCreated>2008-12-12</photoshop:DateCreated> <br> </rdf:Description> <br>
</rdf:RDF> <br></x:xmpmeta> <br><br>Now, if i extract xmp dtat using Exiv2, i can see:<br><br>
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 4.1.1-Exiv2"> <br> <rdf:RDF xmlns:rdf="<a href="http://www.w3.org/1999/02/22-rdf-syntax-ns#">http://www.w3.org/1999/02/22-rdf-syntax-ns#</a>"> <br>
<rdf:Description rdf:about="" <br> xmlns:xap="<a href="http://ns.adobe.com/xap/1.0/">http://ns.adobe.com/xap/1.0/</a>"<br> xmlns:MicrosoftPhoto_1__1_="<a href="http://ns.microsoft.com/photo/1.0/">http://ns.microsoft.com/photo/1.0/</a>"<br>
xmlns:dc="<a href="http://purl.org/dc/elements/1.1/">http://purl.org/dc/elements/1.1/</a>"<br> xmlns:photoshop="<a href="http://ns.adobe.com/photoshop/1.0/">http://ns.adobe.com/photoshop/1.0/</a>"<br>
xap:Rating="1"<br> MicrosoftPhoto_1__1_:Rating="1"<br> photoshop:DateCreated="2008-12-12"><br> <dc:description><br> <rdf:Alt><br> <rdf:li xml:lang="x-default">(c) <a href="mailto:Sylvain.CROUZILLAT@CROUCROU.COM">Sylvain.CROUZILLAT@CROUCROU.COM</a> </rdf:li><br>
</rdf:Alt><br> </dc:description><br> <dc:subject><br> <rdf:Bag><br> <rdf:li>Mariage</rdf:li><br> </rdf:Bag><br> </dc:subject><br> </rdf:Description><br>
</rdf:RDF><br></x:xmpmeta><br><br>Do you see the problem (:=))))<br><br>Andreas, i will send you, the images from Sylvain by private mail to test...<br><br>So the right namespace is MicrosoftPhoto. No more. i will patch digiKam in this way to handle M$ XMP rating tag in this way<br>
<br>Gilles <br>