dialogflow-es - 基本卡中的图像未正确显示
问题描述
我注意到从昨天开始,Google Assistant 上的基本卡片中的图像无法正确显示,似乎被“拉伸”了。我原来的 JSON 是:
"basicCard": {
"title": "Title",
"subtitle": "Welcome",
"formattedText": "",
"buttons": [],
"imageDisplayOptions": "WHITE",
"image": {
"url": "https:URL_IMG.jpg",
"accessibilityText": "TXT",
"height": 694,
"width": 800
}
}
}
我尝试将 imageDisplayOptions 设置为DEFAULT
,CROPPED
和WHITE
, 并结合宽度和高度设置,也没有设置,但这些都不起作用。
我在 PHP 实现上使用 Dialogflow V2。在设备 Android、华为 Y7 2018 上进行测试。
解决方案
推荐阅读
- react-native - Expo react native如何更改pdf文本
- python - 如何修复 Keras Flatten 图层的错误?
- sql-server - 如何为 Azure SQL 上的弹性查询设置 CONNECTION_OPTIONS = 'ApplicationIntent=ReadOnly'?
- javascript - 对象的成员被忽略
- java - API 调用中的 TLS 加密和散列
- java - 带有堡垒登录服务器的 Linux 服务器上的 Socker 服务器客户端
- r - 当响应和预测变量是连续变量时对决策树的解释
- javascript - 减少按钮 HTML / CSS 内的文本
- c# - 在一种方法中混合父类和子类代码的已知方法
- javascript - 无法导入角度外部库