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

新版没法分享图片,分享链接的图片也是 #650

Closed
douweier opened this issue Oct 25, 2024 · 4 comments
Closed

新版没法分享图片,分享链接的图片也是 #650

douweier opened this issue Oct 25, 2024 · 4 comments

Comments

@douweier
Copy link

fluwx: ^4.5.6版本及之前采用的是thumbnail,WeChatImage.network(imageUrl)就能分享链接显示图片,

但是[4.6.0]版本后改成了Uint8List? thumbData,传入Uint8List格式图片后直接报错了checkArgs fail, thumbData is invalid,

看了其它人最近提到的issues都遇到了分享图片直接导致崩溃,应该就是这个问题导致的,请修复,辛苦了

@realWayneZhang
Copy link

分享的如果是网络图片,下载下来转成 Uint8List,过大就压缩一下;如果是本地图片,就转成 Uint8List,无论哪种方式,请确保thumbData正确。

@JarvanMo
Copy link
Member

fluwx: ^4.5.6版本及之前采用的是thumbnail,WeChatImage.network(imageUrl)就能分享链接显示图片,

但是[4.6.0]版本后改成了Uint8List? thumbData,传入Uint8List格式图片后直接报错了checkArgs fail, thumbData is invalid,

看了其它人最近提到的issues都遇到了分享图片直接导致崩溃,应该就是这个问题导致的,请修复,辛苦了

新版本要和native SDK对齐,不再额外对图片进行操作,原因在于很多时候fluwx 的压缩很不理想,而且gif有时候会变成静态图片

@mqguoliang
Copy link

这个thumbData值该如何传呢?
我进行了图片压缩以及分辨率调整到100以下都不显示
还有thumbDataHash这个值是必须要传的吗?
有没有示例帮助一下,之前用的好好的,现在分享视频时缩略图都是黑的

JarvanMo added a commit that referenced this issue Nov 1, 2024
@AlexV525
Copy link
Member

AlexV525 commented Nov 2, 2024

4.6.1 修复了使用 thumbnail 的问题,可以继续使用该字段。

@AlexV525 AlexV525 closed this as completed Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants