在 Google 幻灯片 API 中使用 createImage 时的最大图像大小是多少?

What is the max image size when using createImage in Google Slides API?

使用 Google 幻灯片 API 创建幻灯片,然后在该幻灯片中创建图像时出现错误

Invalid requests[19].createImage: The provided image is too large.

所提供的url中图像的大小是4.9MB。在 wikipedia page about Google Slides 上显示 Images inserted cannot be larger than 50 MB,但我的图像小了 10 倍。

我尝试在 Google 幻灯片上手动创建演示文稿,并通过 url 导入图像,这样就可以了。

我在文档中的任何地方都找不到最大大小限制。

基于Google Slides API Documentation

createImage 是一个 CreateImageRequest 对象。 在CreateImageRequest下,具体说明如下:

  • 图片大小必须小于 50MB
  • 不能超过 25 兆像素
  • 必须是 PNG、JPEG 或 GIF 格式之一。
  • 所提供的URL长度最多为2 kB(url长度最多为2000个字符)。