Welcome to EdListen:
Never Stop Learning

How to add a jpg extension to an image posted to googleusercontent.com or direct link from photos.google.com



When an image is inserted into a google doc, or blogger site, or even google photos, it gets automatically hosted at googleusercontent.com.  If you right-click and get the image address you will find the url is that domain followed by a very long id string.   While most browsers do read this properly as an image, some gadgets and tools, require inserting images that have a .jpg, or .png extension.

This is actually surprisingly easy, but not all that intuitive.   Basically just add a "?.jpg" to the end of the url from googleusercontent.com and it will work.

Here is an image from my photos.google.com.   I just opened the image, and then right-clicked and got the image address.

https://lh3.googleusercontent.com/S5tdfVMru4Zn4s4LIkNce-ynPCiJAlA0OpU4joIMYsuSNiOkdAMwV8EGmfOUniFM0kURXL-PdCjBFm-t6ueB69bZNHtIhrhvTtSMAlcWFCFQ5_Eqt_jQw0FKCapMHtzxBnpHMplMHT7WKXexb7Q411RdGMo013pP7M__JafD134qeDyYST-duYhZ-HyC26LQ5zDt1vgbhjt35XZ0jT2dSXp_ivhJ8QE1SXD434MbsENeBS3ICgDoH6ePnRp492WyqRd5NBw3O-u4n1ayqdp-uPFMITzLj5AR5SDLolvHdper0VxU1dFzGoNfeDSPxesqLC6HDBv_psqMpqnZh2A39kjyH2zFwZSEUGgFmBW3oi14VJq-CRPmFDZl0E0XHxUpOgzWF-VZWp0TuprDOqfHoxqD4F5xRV6RQSgDJl79eaSBX4hnV_Kx58Mo5MZ5M7UqolWsIQdL8TBv2KUsc-QJGkpOzTdVcg8reHdx0xchfduBbrq-5IGZrmxSTtQ8I0pwxLG_opsJ3oWzyBOLGImrEtRdcEqf3mlQl5v-18oBf-6G_A92LpQgNNAykP9IVA-JY4ZH-g=w709-h945-no

I can paste that url directly into the browser and it will show just the image, but if I want to embed that image into a gadget, then I might run into an issue if the gadget requires a .jpg extension at the end.   All that needs to be done is add a "?.jpg" to the end of the url, and you now have a url that you can use in your gadget.

https://lh3.googleusercontent.com/S5tdfVMru4Zn4s4LIkNce-ynPCiJAlA0OpU4joIMYsuSNiOkdAMwV8EGmfOUniFM0kURXL-PdCjBFm-t6ueB69bZNHtIhrhvTtSMAlcWFCFQ5_Eqt_jQw0FKCapMHtzxBnpHMplMHT7WKXexb7Q411RdGMo013pP7M__JafD134qeDyYST-duYhZ-HyC26LQ5zDt1vgbhjt35XZ0jT2dSXp_ivhJ8QE1SXD434MbsENeBS3ICgDoH6ePnRp492WyqRd5NBw3O-u4n1ayqdp-uPFMITzLj5AR5SDLolvHdper0VxU1dFzGoNfeDSPxesqLC6HDBv_psqMpqnZh2A39kjyH2zFwZSEUGgFmBW3oi14VJq-CRPmFDZl0E0XHxUpOgzWF-VZWp0TuprDOqfHoxqD4F5xRV6RQSgDJl79eaSBX4hnV_Kx58Mo5MZ5M7UqolWsIQdL8TBv2KUsc-QJGkpOzTdVcg8reHdx0xchfduBbrq-5IGZrmxSTtQ8I0pwxLG_opsJ3oWzyBOLGImrEtRdcEqf3mlQl5v-18oBf-6G_A92LpQgNNAykP9IVA-JY4ZH-g=w709-h945-no?.jpg