Resizing image in Google Apps Script

前端 未结 4 696
礼貌的吻别
礼貌的吻别 2021-01-01 00:49

I have an image and I want to resize this.

App Script code:

var fileId = \'idImage\';
var img = DriveApp.getFileById(fileId).getBlob().;
newFile.getB         


        
4条回答
  •  猫巷女王i
    2021-01-01 01:36

    Just as an FYI, you don't need to call getBlob().. anything that has a getBlob() can be passed in directly wherever a Blob is needed.

提交回复
热议问题