Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-apps-script/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google apps script 如何更改图像大小?_Google Apps Script_Google Drive Api_Google Docs - Fatal编程技术网

Google apps script 如何更改图像大小?

Google apps script 如何更改图像大小?,google-apps-script,google-drive-api,google-docs,Google Apps Script,Google Drive Api,Google Docs,如何更改存储在磁盘上的映像的大小 function doGet() { var file = DriveApp.getFileById("-ID-"); if (file.getMimeType() == "image/jpeg") { //? } } 这在谷歌应用程序脚本中是不可能直接实现的。唯一的方法可能是使用调用(外部)API 我环顾四周,似乎有一些API在线可用(例如),但我没有在测试中进一步说明…是否参考此?谷歌应用程序脚本?

如何更改存储在磁盘上的映像的大小

function doGet() {
  var file =  DriveApp.getFileById("-ID-");
  if (file.getMimeType() == "image/jpeg") {
    //?
  }
}

这在谷歌应用程序脚本中是不可能直接实现的。唯一的方法可能是使用调用(外部)API


我环顾四周,似乎有一些API在线可用(例如),但我没有在测试中进一步说明…

是否参考此?谷歌应用程序脚本?