1

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

5
  • Is this GAS library useful for your situation? github.com/tanaikech/ImgApp
    – Tanaike
    Commented Mar 5, 2019 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") Commented Mar 6, 2019 at 15:52
  • I apologize that my comment was not useful for your situation.
    – Tanaike
    Commented Mar 6, 2019 at 22:47
  • It's probably useful, it's just that I can't seem to get it to work :-) Commented Mar 7, 2019 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
    Commented Mar 7, 2019 at 23:13

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.