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
Related
I have a document in my Google drive, which I want somebody else to download from a Google Sites website I have created. But I don't want the person viewing the document to know my identity, and I don't want to be able to know the identity of anybody viewing the document. This is because the document is part of a paper submission to an academic conference, where the reviewers will be downloading and viewing this document, and the conference requires strict anonymity between the authors and the reviewers.
I have created a public link to the document on my Google Sites webpage, so that anybody who visits the webpage can download the file. And I have tried logging out of my Google account, and downloading the file, which shows no sign of my name. But I would just like to double check that if anybody downloads this file, they will definitely not be able to know my identity (e.g. my Google account name). I know that there may be ways to find out the document's author by looking in the meta-data, but I have been careful with this already. I am specifically interested to know if there is any loss of anonymity by sharing the link through Google Drive.
Here are the specific steps I took to make the document available for download:
Created a Google Sites webpage
Created a document called "test_document.pdf"
Uploaded this document to my Google Drive
In Google Drive, after clicking on this document, I did Share->Get Link->Anyone on the internet with this link can view->Copy link.
In my Google Sites webpage, I create text saying "Download document here"
After highlighting this text, I clicked on "Insert link".
I then pasted the link from before.
When viewing the webpage, you can then click on the "Download document here" text, and it downloads the document, and saves is as file "test_document.pdf".
I have found the answer myself, which is Yes, downloading a document from Google Drive can reveal the document's owner. If you open the document within the Google Drive environment, and then click on the three buttons, then click on Details, it reveals who the owner is. If you just download the file without inspecting the details within Google Drive, then it doesn't reveal the owner, but I don't know how to force a direct download without allowing somebody to open the file within Google Drive.
I would like to share pdf in google drive but even with featurs of preventing downloading and printing still can download it image by image that's why i thought to use another way after some research I found pdf2htmlEX so after i convert my pdf to html I upload it in google drive but when i wanted to opended it's appear as html code not as pdf
any help to solve that issue and any idea to share pdf without be downloadble image by image
It sounds like you're trying to secure your PDF and keep people from downloading/screenshotting its contents. Unfortunately, even if you successfully convert the PDF to HTML, people will still be able to view and therefore download/screenshot the contents. It's hard to prevent piracy.
As for the issue regarding your HTML files displaying as HTML in Google Drive, Google Drive doesn't support this. Google Drive no longer renders HTML files as of August 31, 2015:
https://gsuiteupdates.googleblog.com/2015/08/deprecating-web-hosting-support-in.html
If you're looking for a way to secure your PDF, most people will tell you that the simple answer is: you can't. Tools exist that help prevent screen recording and screen printing, but they're expensive and not foolproof. Someone can also just take a picture of their screen. The reality is that if you want to share content with the world through a PDF, you have to accept that it might be shared or stolen.
If you just want some basic protection through Google Drive, Google offers some advice for preventing copying and downloading:
To prevent commenters and viewers from downloading, printing, or
copying your file:
Click Share or Share Add people.
In the bottom right, click Advanced.
Check the box next to "Disable options to download, print,
and copy for commenters and viewers."
Click Save changes.
Click Done.
Source
I have a folder in my Google Drive where I put hundreds of my product images.
I want to know if I can write a script that finds the file and then returns the image URL of that file so that it can be viewed from a Google Web App I created?
You can embed image from Google Drive on your web page by url in format https://drive.google.com/uc?export=view&id=DRIVE_FILE_ID
Here is live snippet:
<img src="https://drive.google.com/uc?export=view&id=0ByPNL6sCkWNyWllRVWx2WEFodzA" width="100" height="100">
As noted in the comments to your post, Google has disabled the option of linking directly to a file on Google Drive. However, you can use the Google Drive API to download the file. After which you can encode the image as a base64 encoded string and use it inline by setting the 'src' attribute in an img tag to that encoded string. Granted this is potentially a slow method if your image files are very large, but it should work well for images of moderate size.
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
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