Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Image尺寸问题 #150

@bunnyi116

Description

@bunnyi116

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpendingThe developer is working on other projects.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions