How to obtain a direct link to an image in Google Photos?
Tagged: google photos
- May 14, 2017 at 12:17 am #1513
As everybody probably knew already, Google has retired Picasa, an image organizer and image viewer app designed for organizing and editing digital photos that comes with an integrated photo-sharing website. Picasa was originally created by a company named Lifescape, and later acquired by Google and began offering it as a freeware. On February 12, 2016, Google announced it was discontinuing support for Picasa Desktop and Web Albums, and on March 15, 2016, it totally retired the Picasa app in order to focus on their cloud-based Google Photos (being its successor). On May 1, 2016, Picasa Web Albums, a companion service was closed. All links to Picasa were then redirected to Google Photos.
Anyway, enough with the story, what comes after that is a service that’s still free but kind of not so very user-friendly. Before, images stored on Picasa Web can be accessed as a file with an extension name. This is still true for files that were uploaded during Picasa’s time, as these images seem to have retain those features, but now, when you upload a new picture on Google Photos, you get a very long url.
Here’s an example:
As you can see, this is not an actual url that links directly to the file, this is actually a cloud-base url generated by Google that corresponds to the file on their server, but is not the actual file itself. This is problematic when you’re trying to use these images on some forums, and some blogs, as some of them requires you to have an extension and clearly, this one doesn’t have that.
Fortunately, while there is no way to directly hotlink into the image file nor there is a way to shorten the link, there is a way to get an extension name. Among the tricks used are adding ?.jpg or -tmp.jpg at the end of the link.
For example, for the image link above:
Now, the image link will be treated as a filename.
I find adding -tmp.jpg more reliable than adding ?.jpg though as ? is a special character and may have some issues with some forums and blogs.
There’s more, you can actually resize the images in those links by adding size parameters at the end of the link. Among the examples are “=s400”, “=w400”, “=h400”, “=w800-h400”, etc. wherein the values in those parameters represent the desired size in pixels.
You must be logged in to reply to this topic. You may login using: