I am thinking of adding support for Picasa metadata. #391
Replies: 8 comments 1 reply
-
That's a great idea! I'll need some picasa samples |
Beta Was this translation helpful? Give feedback.
-
I'm back working on this today. Just thought I'd update, and check for any input. The file format for a .picasa.ini is something like: [Picasa]
name=Name of Album
location=Mission Bay Park
date=38084.006597
P2category=Folders on Disk
description=A longer album description
[image-name.jpg]
star=yes
faces=rect64(7c7118a7ac166573),fbb549a7349d93eb;rect64(4b60342679997e1a),95745f57a138c4e7
backuphash=931
albums=a69213fd86eaf86a9efb18b412c70b0c,33d11064a5ba4959c16ec1adf070875c
filters=retouch=1;glow2=1,0.578947,4.275992;
moddate=0000efc206cd0000
width=3100
height=2256
textactive=0
caption=My Caption
[.album:a69213fd86eaf86a9efb18b412c70b0c]
name=Another Album
token=a69213fd86eaf86a9efb18b412c70b0c
date=2011-12-02T08:50:47-08:00 Every [section] and key=value is optional. |
Beta Was this translation helpful? Give feedback.
-
For my first pass, I plan on supporting [Picasa] # Directory level
name=Name of Album
location=Mission Bay Park
description=A longer album description
[image-name.jpg]
star=yes
caption=My Caption If there is enough need, I might add support to the seconday The "location" on the picasa album is a free form description string. (it is not coordinates). A plan on appending any location string to description. Example: |
Beta Was this translation helpful? Give feedback.
-
I used |
Beta Was this translation helpful? Give feedback.
-
I have a draft PR here: https://github.com/simulot/immich-go/pull/430/files Everything is working: (I'm using it on my 80k image library) 🎉 There are a few things I want to add, but I wanted to get your input before I add too much polish.
Do you want me to: Let me know, and I will get the code done. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your work. Here are some informations on the design of immich-go: The upload code is in charge of parsing the command options and opening a Afero was a thing before the fs.FS interface has been added to the library. I'm using memfs just for testing obscur parts of the code, the real code relies on an fs.FS implementation. Your Picassa importer must implement the "browser.Browser" interface defined here: Then the specialized "browser" is instantiated in the Upload code, like here: Your importer type must implement the following methods:
|
Beta Was this translation helpful? Give feedback.
-
Thank you for the input. 🤔 Picasa stores the images on filesystem, in directories organized by the user. And the current I should move the package I think I'm leaning toward "c". Thoughts? |
Beta Was this translation helpful? Give feedback.
-
Your remark is valid... The scanning of a file system can be mutualized between all import methods, and keep separated the logic for the google photos, picasa, or a potential ICloud. I guess this would simplify the work for contributors |
Beta Was this translation helpful? Give feedback.
-
First, Thanks for a the great importer!!! (Just started using immich.)
I do a little go programming, and I have a about 2TB worth of photos in a directory structure that we have in Picasa.
Picasa stores it's metadata (stars, descriptions, filters, etc) in a ".picasa.ini" file per directory.
I am planning on trying to add a parser for .picasa.ini this weekend to load descriptions and isFavorite, and I wanted to check in before I started.
Initial thoughts:
Let me know if you have any suggestions. I'll probably start on it in a couple of days. I plan on doing a quick first pass, and then clean up with tests on the second pass.
Thank you again for a great tool.
-Lance
Beta Was this translation helpful? Give feedback.
All reactions