How to access my google drive images from app script html file so that i can use those images in my img tags something like src= "https/googledrive/folderID/imagename.png"
I have not able to find any relevant answer.Please help!
you cant. ok you can but only for a few more months as google has deprecated "google drive hosting" (google that if you still want to use it)
instead you can use another free google hosting like a google site. put images in a file cabinet page and make the page public. like this image:
https://sites.google.com/a/plusfortrello.com/images/img/bubble-sprite.png which is the cabinet site plus plus the image name appended.
sites images have disadvantages like lack of caching and slow GET. you can greatly speed it up using a (paid) Google Cloud Storage bucket mentioned in this blog post of mine: http://zigmandel.blogspot.com/2015/09/how-i-crowd-translated-my-product-tour.html
Related
So for my class I have downloaded, and uploaded documentaries to gdrive I need to analyse. Though when I embed these google drive videos in notion.so (notion doesn't allow html type embeds, and only supports links without styling) the thumbnail will just be a random frame in the video. Is there any google apps script that can change the thumbnail to an image stored on my drive?
I am aware of this, but it is of no luck to me. (I do know that it is not a google as)
Thanks in advance!
In short,
No. At this moment in time the google drive api does not allow changing thumbnails of files, in which google drive provides its own thumbnail.
"If Drive can generate a thumbnail from the file, then it will use the generated one and ignore any you may have uploaded. If it can't generate a thumbnail, it will always use yours if you provided one." - Google Drive for Developers
I am tried to show an image using google docs. But it does not work for image. But it perfectly work for pdf and doc files.
My code is given below.
<iframe id="iframe_certificate" class="iframe_show" src="http://docs.google.com/viewer?url=http://fireandsafetyforum.net/LMS/director/images/test.jpg&embedded=true"></iframe>
Google Docs' doesn't host (its an editing program), Google Drive does (its storage).
There are two requirements to publish content from Google Drive:
1. the folder is made public;
2. a webViewLink URL is created for the content.
See: https://developers.google.com/drive/web/publish-site
Your source doesn't look like the URL example given. It looks like it might be a rendering of the relevant file (not the file) in Google Docs.
If you haven't done so, I suggest you use above page to make sure the relevant file is made public and given a proper URL.
I had built a Google UI Apps Script in my Drive account. It works great.
I would like to embed it on my domain. I know that I can embed it as a gadget on a Google site, but I don't want Google's URL appearing in my website.
I have a word-press site and I would like to embed this UI script into a page/post on my word-press site or create a stand alone page on my domain with this script on it.
Is this possible?
I just don't want my users to be redirected off my site and see the long ugly domain of https://script.google.com/a/macros/*************
Any suggestions?
This isn't currently supported.
See (duplicate) Embedding Google Apps Script WebApp in WordPress Page.
Visit Issue 852 and star it for updates. (There are also some potential work-arounds described in the issue comments.)
I just had an idea to have a collaboratively worked-on public Google Drive document's contents displayed on my Web site. I was hoping this would be straightforward, as I am only going to extract simple text and the document is public, so no authentication shenanigans will bar my way.
I have looked at Google Drive REST API, but turns out I can only get file metadata and/or the entire document file. Not just the document content.
I do not wish to spend a day coding to do this, I thought it would be nice to have, but can live with just linking into the file directly from my Web site. Anyone tried this before? Anyone experimented with Google Drive API and has a feel for how much work would be involved?
If you are thinking of getting the content of a native Google document (like a Google spreadsheet or a Google doc), this is currently possible with the Drive API.
In the Drive API, for Google native document types you will have a series of 'exportLinks' as part of the metadata of the file. Each of these export URLs allow you to download the content of the Google document in a specific export format (like RTF, plain text, HTML, PDF etc...). Updating my answer...
See the documentation for this: https://developers.google.com/drive/manage-downloads#downloading_google_documents
I have a website that is a bunch of standard HTML4 files. It has a Dreamweaver template file but each file has the template already put into it.
Is there an easier way to convert a website from HTML files to Google Sites than to copy the source code of each file and create a page on Google Sites with that source code?
I think this FAQ can be helpful to understand what Google Sites exactly is, what it can and what it can't.
Unfortunately Google Sites isn't flexible and powerful as it's wanted.
Depending of your needs you could try to use Blogger or Google App Enginge. You could search simple CMS for GAE and try to export your Dreamweaver project to GAE hosting.
If it will help you, please inform me. I think it's interesting to do.
If you have a local working copy of a css/java website.... all you need to do is copy the website folder with all the website files to a google drive folder that is shared publicly. Then get the hosting link for your websites index.html from the detail description of the index.html file that is in the folder that is now on google drive. Open your google site and add a full page iframe using the hosting link to your website index.html file as its source.
the local website you created is now live on google sites as your website
If Google sites is still like it was about two years ago when I used it, that is the only way. Its sad, but Google sites is not supposed to be for doing anything past basic html.