Executor-Cheng / Mirai-CSharp

使用C#调用mirai-api-http。
GNU Affero General Public License v3.0
173 stars 41 forks source link

Image尺寸问题 #150

Open bunnyi116 opened 3 months ago

bunnyi116 commented 3 months ago

image

我将接收到的消息进行复读测试的时候,我发现图片回复的尺寸不一致,回复的图很小。

我做过测试,自己构建一个图片消息进行发送,传入的Uri地址的显示是正常的,使用ImageId发送的就很小。

然后我观察了一下原始数据,它实际是存在宽高信息的,我觉得是不是缺失了这些信息,导致使用ImageId发送的时候使用了默认的最小尺寸进行发送

image

image

image

https://github.com/project-mirai/mirai-api-http/blob/e9d5609b1cd580217a868f2daa789360283ba289/mirai-api-http/src/main/kotlin/net/mamoe/mirai/api/http/adapter/internal/dto/message.kt#L121

image

Executor-Cheng commented 3 months ago

应该是 mirai-api-http v2.6.0 起的特性, 我知道了