|
Hello all,
I have started using digikam about 3 weeks ago. I really like it and now I would like to convert all my previos picasa stars to digikam rating. Is it possible? Otherwise I have lot work to do to re-rate all my photos (more than 40k). I'm using digikam 1.9 on linux Thank you beforehand. |
|
I've had the same problem as you and I found a solution.
Picasa stars are written in the .picasa.ini file, for each directory in the picasa albums. I wrote a python script that processes the .picasa.ini in a directory, finds the starred images, and writes a "5 stars" Exif metadata to the corresponding files : picasaStarsToExif.py Use it as following : picasaStarsToExif.py directoryContainingPicasaIni You will need the python module pyexiv2 to run it. (sudo apt-get install python-pyexiv2) It only supports JPG and jpg extensions, but you can easily modify the script to support other extensions. Digikam imports this metadata to its own database for new images. For images already in your digikam collection, you need to use the option "re-read metadata from the image" in the album or image menu. To apply the script recursively in all subdirectories of your image collection, you may run (from the top of your collection) : find . -type d -exec [scriptLocation]/picasaStarsToExif.py {} \; After that, you need to re-read metadata from all images in Digikam. The simplest and fastest way I've found to do that is to use the search tool of Digikam to find "everything". I've searched for the keyword "JPG", then selected all photos, then used the option to re-read metadata from selected images (image menu). Then, the same for the "jpg" keyword. (All my images have a "JPG" or "jpg" extension.) If your collection is big, it takes a while (and may freeze digikam), but once done, all your picasa stars have been converted to 5 stars in Digikam ! Hope this helps. |
|
I noticed that some of my old folders have a "Picasa.ini" file instead of ".picasa.ini".
Probably due to an older version of Picasa ? Here is an updated version of the script which processes "Picasa.ini" as well as ".picasa.ini" files : picasaStarsToExif.py And contrary to what i said in my previous post, there is no need to search for "JPG" and "jpg" separately to find all images in digikam : the search seems to be case insensitive. |
|
This is just what I was looking for.
However I'm getting this when running your script: bash: ./picasaStarsToExif.py: Permission denied I'm running it as a root. I cannot figure it out. Any ideas? -- View this message in context: http://digikam.1695700.n4.nabble.com/How-to-import-export-picasa-stars-tp4551418p4675475.html Sent from the digikam-users mailing list archive at Nabble.com. _______________________________________________ Digikam-users mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-users |
|
Hello ! Happy that the script may help you.
Did you check that the script has execution permission ? Otherwise try : chmod a+x picasaStarsToExif.py |
|
That did the trick.
Thanks a lot. A. January 5 2015 9:44 PM, "mix4music [via digiKam]" <[hidden email]> wrote:
|
| Free forum by Nabble | Edit this page |
