Skip to main content

How to get a valid URL for a picture 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 of doing this using Google products.  


Previously I've explained how to get a URL for a picture stored in Google Photos - and the difference between Photo's "shareable links" and real photo URLs.

The sort of link you get with this procedure looks like this:
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhasSsvoyOSwVoUZZIa3kd-D0ZQ9XDKJ49giTNAjEp2lsLPteRaneI8loQHOj4w0X7prGgTn0sZFquvg3FBEoBPkVtJpw1CKJ_ZwoKN93xiO7CK5jf9t_DRhYZGMzHkrj3RMGEX8ZDnckaK/w1006-h566-no/

There are some issues with using URLs (aka web-addresses) obtained like this:
  • They aren't recognised as valid image file links by many online tools which ask for the URL for an image (eg phpBB, Blogger - and many others)
  • Sometimes they stop working
    (I've not been able to track down exactly when, but there are reports around the internet from people who say that links like this work for a while and then stop).
  • They don't include the SEO-targeted keywords which you carefully used to name the photograph file before uploading it to Google Photos.  
    (Not everyone does this, and it's a lot harder for photos that were taken on your phone.   But some people do it, and to them not having the keywords in the photo URL is a big deal.)

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




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


1    If you haven't done so already, then upload the photo to Google Photos, in whatever way you usually would  (if you have your smartphone synched with your Google account, you may not even notice uploading it).

2    In Google Photos, find the photo and put it into 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 this is).

3    Using a desktop or laptop computer (ie not your phone), go to Blogger
  • If you've never used Blogger before, you may be asked to accept the terms and conditions.   Just say "yes" to this   (you are't actually going to use Blogger to publish anything).
  • If you don't already have a blog, the click 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 pick anything that's available.   )
  • Or if you do have one or more blogs, just pick one (any one is OK: you're not actually going to publish to it) and go into the Blogger Dashboard.

4    Click New Post
This opens up the post editor.  

5   In the tool-bar at the top of the post editor window, click the Insert image icon.


It's the rectangle that looks like a picture


6   Choose the From the Google Album Archive tab.
(Google have changed the name for this a couple of times since they introduced the feature - right now it says exactly what I've 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 into, in step two.   Open it, and find the picture, and select it.

8    Choose Ok.  

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

10    Click on the Edit HTML tab (currently at the top left side of the post-editor) to go into Edit HTML mode.     You will see HTML code like this.
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsFa6QkMSSeUloiuOAj1WcWoED9Qq2qwUsz0NEkAIlO_2UztYYStY3ylpayZjEFeZ80VJANIQZTB7b1bvqHQbZlFVZ4L_xI8Fj2X_3svUGK3RTqzJ9OfU6NH7tsBOju3DGXV7oUq5zdkk/s1600/tarmacadam-promenade-sunny-september-day.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="180" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsFa6QkMSSeUloiuOAj1WcWoED9Qq2qwUsz0NEkAIlO_2UztYYStY3ylpayZjEFeZ80VJANIQZTB7b1bvqHQbZlFVZ4L_xI8Fj2X_3svUGK3RTqzJ9OfU6NH7tsBOju3DGXV7oUq5zdkk/s320/tarmacadam-promenade-sunny-september-day.PNG" width="320" /></a></div>

Or like this, if you didn't give the image a better filename before uploading it:
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieNclWtG4P4r8BdhFaDqIDJZCi5yOPUEX_hYx6MRDh4VYKydxUbHNj8-NoCdRsjd4LKGDDupYGubYGqXV9NMD_3xMsZXtB76xogCdc4nmas44fbFvMMvbE1J-byTErHxD3kShK998UtuU/s1600/DSC_3573.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="180" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieNclWtG4P4r8BdhFaDqIDJZCi5yOPUEX_hYx6MRDh4VYKydxUbHNj8-NoCdRsjd4LKGDDupYGubYGqXV9NMD_3xMsZXtB76xogCdc4nmas44fbFvMMvbE1J-byTErHxD3kShK998UtuU/s320/disc0137.JPG" width="320" /></a></div>

11   Find the part which starts   src="     and ends with a closing quote-mark.      This is the URL for the picture you chose.   In the example above, it's the part in bold-red

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


Job done!     A general-purpose, valid, well-formed, web-address for the picture you want is now in your computer's memory, and can be pasted into anyplace where you want to use it.

To get out of Blogger, click Close (near the top right of the screen), and agree to leave the page anyway even though it means you will lose your work.



Troubleshooting / Extra for experts

Finding the image code in your post

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


Getting a valid link to someone else's photo

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


Using the blog you've made for other things

Maybe using Blogger like this has given you ideas about other things you can use it for:   that's great, Blogger is an excellent tool for publishing material on the internet with a minimum of fuss - while also having enough features to let you do some sophisitcated things.   And even just the post editor can be a handy HTML generator at times.   You might like to read Getting Started with Blogger, for some tips about how to set up your Google account and very first blog.


Other challenges?

Do you have any questions around this approach, and how to solve problems with it?   Please 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 an URL for a picture stored in Google Photos - version 1

Using marker text to find things in your post's HTML code

Things to consider before starting to use Blogger

Using Blogger's post-editor as an HTML generator


Comments

Popular posts from this blog

Putting a badge for a Facebook Page into your Blog

This article describes making a Facebook badge to promote your page, and putting it onto your blog. What is a Facebook page This article is about how to make a badge to promote a Facebook  Page . This is an example of the "follow me" approach to linking your blog and the social networks , although for Facebook pages your reader becomes a Fan rather than a Friend. Many people are confused about when they should use each of the types of "thing" in Facebook, ie Profiles - accounts for flesh-and-blood, living, breathing, individual people Pages - for websites, brands, and organisations that don't want to approve all their Facebook members Groups -  for organisations that want to approve individual members who join (and in return, group-owners can send private messages to individual members. The most common "thing" for blogs to have is a Page - and a Badge is the tool which Facebook provides to help you to promote a Page on your blog or other website. Ho

How Do Insurance Companies Make Money? - How Does It Work Operationally?

How does it work operationally? Insurance companies can be much more complex than it seems. I won't go into details, but I will try to give a sense of the variety of things to do: Marketing and product development - we have to understand what our clients want and product design including "features" and guarantees (e.g., including dental health plan or not in limitation of the disease before the type of questionnaire that we ask clients to fill???), pricing, regulatory constraints, etc. and IT is, of course, for the system to support this product. Distribution - how we bring our products to the clients? Agents, brokers, direct sales channels are all there, plus the development of smartphone applications and internet sales. Customer service and claims that "the process of paper" including address change customer or telephone number, the call center for clients who have questions, people file to review and pay claims, etc. Finance   - n

How to rename picture files in Picasa-desktop

This article is about re-naming files from within Picasa-desktop, to provide SEO benefits for your blog. Picasa's desktop software is a good tool for organizing and editing photos on your local computer.   And it is still available for you to use, even though Picasa-web-albums has been replaced by Google Albums + Google Album Archive. For pictures that are important in your blog, I still recommend preparing them in a tool like Picasa-desktop and then uploading the finished versions to Google Photos before putting them into a post, because: The desktop tool has better editing tools (cropping, zooming, auto adjustment, adding watermarks) and Picasa-web-albums does. It lets you control the size of the uploaded file It's easier to ensure sure that you still have full-size files on my local machine for printing etc, as well as smaller, more optimized, copies to use on web-pages. Picasa-desktop folders have a very nice relationship with files and directories with the Windows file sy