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

前端 未结 17 1971
傲寒
傲寒 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:17

    1 - Create a folder in your google drive;

    2 - Make this folder public (on share property)

    3 - use something like this as your image src: https://drive.google.com/thumbnail?id=${imageId}&sz=w${width || 200}-h${height || 200}

提交回复
热议问题