Teams内嵌的卡片image的限制

Teams中内嵌卡片的图片显示有限制,包括必须是公开可访问的URL,尺寸不超过1024x1024且大小不超1MB,仅支持PNG、JPEG和静态GIF格式。为解决此问题,可以使用第三方图片服务如七牛云进行格式和大小转换,或者开发自己的图片处理服务来提升用户体验。
摘要由CSDN通过智能技术生成

我的LuckyDraw上线后收到了不少有价值的反馈,其中有一部分是针对图片的,有一些用户说他们填写了image的url,但是图片显示不出来。

ImageIsUnavailable

实际上这个问题在我提交这个应用到微软审核团队的时候,审核团队也提出了类似问题。但这个是Teams本身的限制。具体的文档见: https://docs.microsoft.com/en-us/microsoftteams/platform/concepts/cards/cards-reference

其中有一段

Your card can contain an inline image by including a link to your publically available image. For performance purposes we highly recommend you host your image on a public content-delivery network (CDN).

Images are scaled up or down in size while maintaining the aspect ratio to cover the image area, and then cropped from center to achieve the appropriate aspect ratio for the card.

Images must be at most 1024×1024 and 1 MB i

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值