通过IMGAPP Google Sheet Library从图像链接中提取宽度和高度
我想从Google表中的URL中提取图像的尺寸。找到了这个库,可以正是我所追求的。
“ https://github.com/tanaikech/imgapp#getsize”场景和想知道我在脚本编辑器中应确切使用什么。如果我遵循以上内容,我将无法获得结果。
请帮忙。
谢谢
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当我看到您提供的样品电子表格时,看来电子表格和脚本如下。
修改点:
= myFunction(A2)
的自定义函数放在单元格中。但是您的脚本没有检索值。driveapp.getFileById(fileID)
由于限制而无法使用。当这些观点反映在实现您的目标的脚本中时,如下所示。
修改后的脚本:
请用以下脚本替换当前脚本并保存脚本。并且,请将
= myFunction(A2)
的自定义函数放在单元格中。这样,返回宽度和高度。测试:
当此修改后的脚本用于样品电子表格时,如下所示。
参考:
When I saw your provided sample Spreadsheet, it seems that the Spreadsheet and your script are as follows.
Modification points:
=myFunction(A2)
to a cell. But your script doesn't retrieve the value.DriveApp.getFileById(fileId)
cannot be used because of the limitation.When these points are reflected in the script for achieving your goal, it becomes as follows.
Modified script:
Please replace your current script with the following script and save the script. And, please put a custom function of
=myFunction(A2)
to a cell. By this, the width and height are returned.Testing:
When this modified script is used for your sample Spreadsheet, it becomes as follows.
References: