How do I display images from Google Drive on a website?

前端 未结 17 1957
傲寒
傲寒 2020-12-02 05:35

A client of mine has uploaded some photos to their Google Drive and would like me to display their photos on their company website. I reviewed the documentation for displayi

17条回答
  •  温柔的废话
    2020-12-02 06:23

    I have the same problem right now but this article helps me. Updates for the year 2020!

    I got the solution from this article:
    https://dev.to/imamcu07/embed-or-display-image-to-html-page-from-google-drive-3ign

    These are the steps from the article:

    1. Upload your image to google drive.
    2. Share your image from the sharing option.
    3. Copy your sharing link (Sample: https://drive.google.com/file/d/14hz3ySPn-zBd4Tu3NtY1F05LSGdFfWvp/view?usp=sharing)
    4. Copy the id from your link, in the above link, the id is: 14hz3ySPn-zBd4Tu3NtY1F05LSGdFfWvp
    5. Have a look at the below link and replace the ID. https://drive.google.com/thumbnail?id=1jNWSPr_BOSbm7iIJQTTbl7lXX06NH9_r

    After Replace ID: https://drive.google.com/thumbnail?id=14hz3ySPn-zBd4Tu3NtY1F05LSGdFfWvp

    1. Now insert the link to your tag.

    And now it should work.

提交回复
热议问题