Google Appsheet 不显示来自 Google Sheet 图像 URL 列的图像

问题描述 投票:0回答:1

我有一个 google 工作表列,其中包含来自 google 驱动器的图像 URL(请参阅 Image1)。 保存图像的 Google 云端硬盘文件夹设置为可由 “知道链接的任何人” 查看(请参阅图像 2)。

图1 enter image description here

图2 enter image description here

在google Appsheet中,“图像”列类型设置为“图像”,并尝试使用“显示”

enter image description here

在视图下,我将“主图像”设置为“图像”栏。

enter image description here

我一直在尝试按照下面的帖子来解决此问题,但仍然无法正常工作:

  1. 帮助使用 Google Drive 中的静态图像使用 Google Drive 中的数据 根据这篇文章,我确保我的网址格式为“https://drive.google.com/uc?export=view&id={fileID}”
  2. 显示图像、文档和音频文件 我已关闭 “需要图像和文件 URL 签名” enter image description here

我可以知道如何解决这个问题吗?

google-sheets google-cloud-platform google-drive-api google-appsheet
1个回答
0
投票

根据您的情况,按如下方式修改图像文件的端点怎么样?

来自:

https://drive.google.com/uc?export=view&id={fileId}

致:

https://drive.google.com/thumbnail?sz=w1000&id={fileId}
  • 此端点来自 this
  • 您可以通过
    w1000
    调整图像大小。
  • {fileId}
    的文件被公开共享时,我确认通过反映上述修改,图像可以显示在Apps Sheet中。
© www.soinside.com 2019 - 2024. All rights reserved.