代码之家  ›  专栏  ›  技术社区  ›  Junekuan

Google Appsheet未显示Google sheet图像URL列中的图像

  •  1
  • Junekuan  · 技术社区  · 1 年前

    我有一个谷歌工作表列,其中包含来自谷歌驱动器的图像URL(请参阅Image1)。 保存图像的Google Drive文件夹设置为可通过查看 “任何有链接的人” (参见图2)。

    图片1 enter image description here

    图片2 enter image description here

    在谷歌应用程序表中,“图像”列类型设置为“图像”,也尝试使用“显示”

    enter image description here

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

    enter image description here

    我一直在努力关注下面的帖子来解决这个问题,但仍然没有成功:

    1. Help with static image from Google drive Use data from Google Drive 基于这篇文章,我已经确保我的URL格式为“https://drive.google.com/uc?export=view&id={fileID}“
    2. Display images, documents, and audio files 我关掉了 “需要图像和文件URL签名” enter image description here

    我能知道怎么解决这个问题吗?

    1 回复  |  直到 1 年前
        1
  •  1
  •   Tanaike    1 年前

    在您的情况下,如何修改图像文件的端点,如下所示?

    从…起

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

    https://drive.google.com/thumbnail?sz=w1000&id={fileId}
    
    • 此终结点来自 this .
    • 您可以通过以下方式调整图像大小 w1000 .
    • 当的文件 {fileId} 是公开分享的,我确认通过反映上述修改,该图像可以显示在应用程序表中。
    推荐文章