Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image尺寸问题 #150

Open
bunnyi116 opened this issue Apr 6, 2024 · 1 comment
Open

Image尺寸问题 #150

bunnyi116 opened this issue Apr 6, 2024 · 1 comment
Labels
enhancement New feature or request pending The developer is working on other projects.

Comments

@bunnyi116
Copy link

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 Executor-Cheng added enhancement New feature or request pending The developer is working on other projects. labels Apr 9, 2024
@Executor-Cheng
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pending The developer is working on other projects.
Projects
None yet
Development

No branches or pull requests

2 participants