How to get a valid URL for a photo in Google Photos

This article explains the problems with getting valid, SEO-friendly links to images that are in Google Photos – and shows a way to do this using Google products.

The type of link you get with this procedure is as follows:

https://lh3.googleusercontent.com/KgPFwsG1qGxahyj3uWok_5HNEg3iaY_nm5oT0ludtRxdWld7X77v_CPFF0t5CNvF35eMZ2G1J9AGh5CnuU6P9DnOZjXB1AQqj9nrv6Fk9qT6BzQD1iILsf6K7UkCXz6Mr9F6_LlWB-drx0bJwGpn_mWokaM_aJUcp8zC7eMUYodjz29SXq2QUGvISoaE0spQcafH_05fye4d_U8GF2kjNsa53qyO69R4HmEPAzXGSXM6l-5xaGqFKF-WGzq9pmyXAAfApAqZYWowCQUDwWZlXOWm7SkG5y_1nIuNS-3YKsvLeqnGY2xVQKWnmwAdKodpr_gWk_piAK66puEAsgPpMrGx1OrgRVpgvWuG_qYO_SCpDKKh-XKF5C_NpdVxu6Zq9aBlU_g1ThJIfQ6HZwH4sEcuqUHISUH8c5_8OFYJPCQEhN-fPlGwOCm2-DR2YviF0DHvQCbQBAMyjiZKriRUZLE6lCnXflsSoSEBn2tmk-TRd6-hAxp8O1FdusYLNcef_oosdNzlWXWmK6ExGT8tb5DuCx0yrThQLBZx6YiBAIPCBqKwfu-kU9N8thrNTkn3OOSoxEdVt-ObNgk37WSJ65zGHOPzGMPKDJRVvZRQtKPOu8NjUA=w1006-h566-no

There are some problems with using URLs (aka web addresses) obtained like this:

  • They are not recognized as valid image links by many online tools that ask for the URL for an image (eg phpBB, Blogger – and many others)
  • Sometimes they stop working
    (I haven’t been able to track exactly when, but there are reports on the internet from people saying that links like this work for a while and then stop).
  • Do not include the keywords for SEO that you carefully used to name the photo file before uploading it to Google Photos.
    (Not everyone does this, and it’s much more difficult for photos that were taken on your phone. But some people do, and for them not having keywords in the photo URL is a big deal) .

Fortunately, there is a way to get around these problems, which gives you a web address for a photo stored in Google Photos that ends with the same file extension that you uploaded to Photos (eg .jpg, .png .bmp) , and that includes. the keywords you used in the file name.

How to get a valid URL/web address for a photo in Google Photos, using Blogger

1 If you haven’t already done so, then upload the photo to Google Photos, in any way you usually have (if you have your smartphone synchronized with your Google account, you may not even notice that you are uploading it).

2 In Google Photos, find the photo and put in an album.
(It doesn’t matter which album you use – and you can delete the album again later, you just need the photo to be in an album for now, and you need to remember which album it is).

3 Using a desktop or laptop computer (ie not your phone), go to Blogger

  • If you have never used Blogger before, you may be asked to accept the terms and conditions. Just say “yes” to that (you’re not actually using Blogger to post anything).
  • If you don’t already have a blog, click on the Create a blog link, and follow the steps to create one.
    (You won’t be publishing this blog, so it doesn’t really matter what name you give it or what template you use – just choose what’s available.)
  • Or if you have one or more blogs, choose one (whichever is fine: you don’t have to publish in it) and go to the Blogger Dashboard.

4 Click New post

This will open the post editor.

5 In the toolbar at the top of the post editor window, click on Insert image icon
(If it is not visible on the toolbar, click on the three dots icon to open the extended toolbar)

6 Choose the From the Google Album Archive tab.
(Google has changed the name for this a couple of times since they introduced the feature – now it says exactly what I listed here – the name may vary, but you get the idea: choose your Google Albums).

7 Navigate to the album that you put the picture, in step two. Open it, and find the picture, and select it.

8 Choose Ok.

9 Wait a moment while the image is placed in your blog-post, and automatically resized.

10 Click on the Edit HTML tab (currently in the upper left side of the post-editor) to go into Edit HTML mode. You will see HTML code like this.

Or like this, if you haven’t given the image a better file name before uploading it:

11 Come up with the part that begins src=”http://blogger-hints-and-tips.blogspot.com/2017/01/ and ends with a closing comma. This is the URL for the picture you selected. In the example above, it is the part in bold-red

12 Select and copy the text between the two quotes after src= ie the equivalent to the piece of code shown in red.

Job done! A general, valid, well-formatted web address for the picture you want is now in your computer’s memory, and can be pasted anywhere you want to use it.

To log out of Blogger, click Close (near the top right of the screen), and agree to leave the page anyway even if it means you’ll lose your job.

Troubleshooting / Extras for experts

Find the image code in your post

If there is any other material in the post that you are using, you may want to put a marker text before and after the photo while you’re still in Compose mode, to make it easier to find the right part when you’re in Edit HTML mode.

Get a valid link to someone else’s photo

You may want to find a valid URL for a photo that someone else shared with you – but of course you can’t add that to one of your albums. In this case, the solution is to download a copy of the photo that was shared, then upload it to your own Google Photos.

Use the blog you made for other things

Maybe using Blogger like this has given you ideas about other things you can use it for: this is great, Blogger is an excellent tool for publishing material on the Internet with a minimum of fuss – and also has enough functions to allow you to do some sophisticated things. . And even just the post editor can be a useful HTML generator at times. You might enjoy reading it Get started with Bloggerfor some tips on how to set up your Google account and the first blog.

Other challenges?

Do you have any questions about this approach, and how to solve problems with it? Please leave a message in the Comments box at the bottom of the page, and I’ll see if I can find a solution.


Related articles

How to get a URL for a photo stored in Google Photos – version 1

Use marker text to find things in the HTML code of your post

Things to consider before starting to use Blogger

Use the Blogger post-editor as an HTML generator

BB link code (forum):

Leave a Comment