How to import/export picasa stars?

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

How to import/export picasa stars?

juhizz
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.
Reply | Threaded
Open this post in threaded view
|

Re: How to import/export picasa stars?

mix4music
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.
Reply | Threaded
Open this post in threaded view
|

Re: How to import/export picasa stars?

mix4music
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.
Reply | Threaded
Open this post in threaded view
|

Re: How to import/export picasa stars?

alfwro13
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
Reply | Threaded
Open this post in threaded view
|

Re: How to import/export picasa stars?

mix4music
Hello ! Happy that the script may help you.

Did you check that the script has execution permission ? Otherwise try :

chmod a+x picasaStarsToExif.py
Reply | Threaded
Open this post in threaded view
|

Re: How to import/export picasa stars?

alfwro13
That did the trick.

Thanks a lot.
A.

January 5 2015 9:44 PM, "mix4music [via digiKam]" <[hidden email]> wrote:

 

Hello ! Happy that the script may help you.

Did you check that the script has execution permission ? Otherwise try :

chmod a+x picasaStarsToExif.py
 
If you reply to this email, your message will be added to the discussion below:
http://digikam.1695700.n4.nabble.com/How-to-import-export-picasa-stars-tp4551418p4675491.html
To unsubscribe from How to import/export picasa stars?, click here.
NAML