0

Is there a script that I can use to get the images sizes within a folder on google drive?

  • Is this GAS library useful for your situation? github.com/tanaikech/ImgApp – Tanaike Mar 5 at 8:41
  • How do I use this, the Script ID doesn't work, I tried this script function getSize_doc(blob) { var docfile = Drive.Files.insert({ title: "temp", mimeType: "application/vnd.google-apps.document", }).getId(); var img = DocumentApp.openById(docfile).insertImage(0, blob); Drive.Files.remove(docfile); return {width: img.getWidth(), height: img.getHeight()}; } This didn't work either - ReferenceError: "Drive" is not defined. (line 2, file "Code") – user2240778 Mar 6 at 15:52
  • I apologize that my comment was not useful for your situation. – Tanaike Mar 6 at 22:47
  • It's probably useful, it's just that I can't seem to get it to work :-) – user2240778 Mar 7 at 14:36
  • No No, you are right. I think that the problem is my explanation and poor English skill. I have to apologize for this situation. Can I ask you about your situation? In your situation, you cannot use the GAS library. Is my understanding correct? – Tanaike Mar 7 at 23:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.