Embed image from google drive without grey border and zooming tools?

僤鯓⒐⒋嵵緔 提交于 2021-02-05 09:39:18

问题


I have a webpage that has an image that is stored in google drive, and using the google drive embed code results in this-

and I want to include this image in my website without the border and tools, making it look like this-

Adding the image file to my project is not an option, as I am using google apps script as web domain as I am not old enough to have a credit card to purchase REAL web domain, and I am broke and cannot simply rake leaves or shovel driveways because of COVID. so I cannot add the image file to my project, any advice?


回答1:


Answer:

Instead of the embed code, use the view link.

Example:

<img src="https://drive.google.com/uc?export=view&id=FILE_ID_HERE">

I hope this is helpful to you!




回答2:


Okay, the solution is a little bit ironic. The tool that stack overflow uses for images can be used for anything else, so I just had to right-click on the image in this question, click on 'copy image URL' then put it in my website and I got a working image!! LMAO



来源:https://stackoverflow.com/questions/65219838/embed-image-from-google-drive-without-grey-border-and-zooming-tools

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!