Google Photos integration for Obsidian

v1.6.7 released


A couple of quality-of-life improvements in this release:

Photo captions

You can now add the Google Photos text description into your note when you import a photo. This is useful if you add captions in Google Photos and want to populate your Obsidian note with the same caption. This is especially useful if you use an image captions plugin.

Use the template variable {{google_photo_desc}} like this:

[![]({{local_thumbnail_link}})]({{google_photo_url}})

{{google_photo_desc}}

:page_facing_up: More examples of how to use this from the docs.

Shared albums

When you insert an album, the albums list now returns more results and also returns albums which have been shared with you. You can find those shared albums at the end of the list, marked with “:busts_in_silhouette: shared album”.

Thank you for this excellent plugin! Is it possible to use a custom query in conjunction with the notedate? I figured out how to display only starred photos, but it’s showing starred photos from all time. I tried a comma and also tried AND, but it provided the error: malformed input.

notedate,
{
  "query": {
    "filters": {
      "featureFilter": {
        "includedFeatures": [
          "FAVORITES"
        ]
      }
    }
  }
}

Hi @330toSRT8 , you would do it like this, and adjust the date inside the dateFilter to be the date you want.

If you use Templater or similar, you can have the date be automatically set to today’s date when the template is inserted.

```photos
{
  "query": {
    "filters": {
      "dateFilter": {
        "dates": [{
          "year": 2024,
          "month": 7,
          "day": 21
        }]
      },
      "featureFilter": {
        "includedFeatures": [
          "FAVORITES"
        ]
      }
    }
  }
}
```
2 Likes

Hi @AlanG , I like that notedate grabs the date from the filename because my goal is to add this code block to my existing daily notes. But since I have tons of photos from each day, I only want to display those marked as FAVORITES. Thanks for your help!

Understood. Let me have a look and see if I can add that.

1 Like

I’m using the notedate codeblock to display all the photos for a given date. The album appears, but the photos are super pixelated… like may be they’ve got 300 pixel resolution. Anyone have any idea what might be causing this? Thanks in advance!

this may be really obvious, its not to me however.

i got the plugin working.

what im trying to figure out is to make the picture selector work if my notes title is

YYYY-MM-DD TITLE TEXT

It works perfect if there’s no text in the title

Hi Alan! Thank you so much for building this plugin.

Question - the thumbnails that show up when a codeblock is used, do they not get saved on my local? The specified folder only has the photos that I inserted from the picker modal so I am curious.

That’s correct. The codeblock is just browsing your Google Photos remotely - nothing is saved locally.

Genius!

I didn’t realized there is a plugin with such level of optimization. The idea of creating a low resolution thumbnails and storing them in offline mode is really an amazing functionality. I actually struggles with this because I used to embed images from various places and even if I close and open the note, the images were reloaded again and again (unless Obsidian is doing some sort of caching for the embeds).

This plugin is very essential one for me and I have been using it for a while now. It’s very well implemented. Thank you for building this plugin.

Also, is there any plan in future or will it be possible for this plugin to also support for image embeds from other sources as well. Like, download a low resolution image of the original one and store it in some cache folder under the config directory and also provide the link for the original one.

Hi @Tu2_atmanand , thank you for the kind words! I try to make my plugins as efficient as possible.

Sadly I won’t be doing any more work on this plugin (announcement). I have switched from Google Photos to using Immich, which I would recommend to anyone technical in the interests of privacy … and for the small fact that you never know when Google is going to kill the project entirely and you lose access to your photos.

2 Likes


Hello! Thank you for this plugin. Unfortunattely I can’t pick photos. I don’t understand this message.

Error:Permission denied. Please re-authenticate with Google Photos.
what do I have to do now?
I hat tried to re-authenticate in the Preferences of th Plugin.

Can anybody please help me?
Thank you for your support!
Michael