Outils pour utilisateurs

Outils du site


en:permalinksforgoogledrive

Permalinks for Google Drive Images

Source : http://googlesystem.blogspot.fr/2013/02/permalinks-for-google-drive-images.html

While Google Drive lets you upload any file, the support for files that can't be edited using Google Docs/Sheets/Slides is limited. Google doesn't offer permalinks for images.

So you've uploaded a photo to Google Drive and the only options are to download the file and link to the image page. But what if you want to embed that image in a web page or simply post a direct link to the image? You may think that right-clicking the image lets you copy the image URL, but that's not true. Even if you check the source code of a page or use features like Firefox's “view page info”, you'll get a link that doesn't work. <br /><br />

Fortunately, there's an easy solution - replace this URL from the address bar:

http://docs.google.com/file/d/FILEID/edit

with:

http://drive.google.com/uc?id=FILEID <br />

Or this solution also works : http://drive.google.com/uc?export=view&id=FILEID// (where FILEID is a long sequence of digits and letters). This only works if you've changed the visibility options to “public on the Web” or “anyone with the link” in the Share dialog. <br /><br /> Here's an example: Your URL file from your google drive images is : https://drive.google.com/file/d/1FvhVqZuub_zjzGzfHCWAMB9S0w6NrFSuNQ/view?ts=56e7de5e Your FILEID is : 1FvhVqZuub_zjzGzfHCWAMB9S0w6NrFSuNQ <br /> Now your new URL to used in your browser is : http://drive.google.com/uc?id=1FvhVqZuub_zjzGzfHCWAMB9S0w6NrFSuNQ <br /> And you would obtain a new URL that you can enter in the Xper URL field : https://doc-0s-8o-docs.googleusercontent.com/docs/securesc/ha0ro937gcuc7l7deffksulhg5h7mbp1/1q26vpr6sre3k1a7gakh91oqp2svuktv/1458036000000/10941674021321527517/*/1FvhVqZuub_zjzGzfHCWAMB9S0w6NrFSuNQ <br /><br /> This new URL will be the only one recognized as image format (eg: JPG,PNG,GIF…) by Xper.

en/permalinksforgoogledrive.txt · Dernière modification : 2022/08/31 18:49 de wikiadmin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki