<br><br><div><span class="gmail_quote">2007/10/18, BillChan <<a href="mailto:billypchan@gmail.com">billypchan@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>I am a new Ubuntu user and found DigiKam is a great photo tool. I have<br>thousands of photo shot with my Nikon D80, managed with Picasa for<br>windows previously. Now I move them to my Ubuntu PC and wrote a Perl
<br>script to 'copy' the Picasa's star to DigiKam...<br><br>I use Perl's exiftool module to do it, but something strange happened...<br>This is part of my script:<br><br>my $exifTool = new Image::ExifTool;
<br>$tag = '1IPTC:Urgency';<br><br>foreach $file (@arFiles)<br>{<br>$info = $exifTool->ImageInfo($file,$tag2);$success =<br>$exifTool->SetNewValue($tag, '7'); #set rating to 1 star<br>$exifTool->WriteInfo($file);
<br>}<br><br>then select the photos in DigiKam, and click 'more->read metadata from<br>file to database' on right panel and hope it work...<br><br>The problem is, when $file is a .NEF file(Nikon raw) it works great. But
<br>   if is a .jpg file(major of my collections), The star doesn't appear<br>in DigiKam. </blockquote><div><br>There is no reason for that. all image file format are parsed by the same way. Are you sure than your JPEG file as 
Iptc.Urgency tag set properlly before to import it to digiKam DB ?<br><br>Alternativly, there are  other way than IPTC to set Rating value. Try Exif.Image.0x4746 tag (Windows Vista Rating). <br><br>Note : the code used to extract rating from image can be seen here :
<br><br><a href="http://websvn.kde.org/branches/extragear/kde3/graphics/digikam/libs/dmetadata/dmetadata.cpp?revision=711981&view=markup">http://websvn.kde.org/branches/extragear/kde3/graphics/digikam/libs/dmetadata/dmetadata.cpp?revision=711981&view=markup
</a><br><br>...and expecially the method DMetadata::getImageRating().<br><br>Regards<br><br>Gilles</div></div><br>