LoginSignup
1
2

More than 3 years have passed since last update.

GoogleDriveの画像をwebに表示させる方法

Last updated at Posted at 2020-11-17

GoogleDriveの画像リンクをimgタグに貼り付けて、web上で表示させる方法!!!

①画像の共有を『リンクを知っている人全員にする。』

②画像リンクを取得する。
  『画像を右クリック->画像リンクを取得する』

③コピーした画像リンクを加工する

加工前
https://drive.google.com/file/d/画像により異なる文字列/view?usp=sharing
↓
加工後
https://drive.google.com/uc?export=view&id=画像により異なる文字列


uc?export=view&id=   これを追加するだけ!

これでweb上でGoogleDriveの画像が表示される。

リンクの先頭はhttpsでもhttpでも可能だけど、個人的には警告出ないhttps推奨。

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2