我是如何获得微信内置表情的 #156
Labels
blog: programming
@post
This is a blog post
tag: android
|182765503-22cbf4f9-60ce-47a1-8e00-fc731d2f4100.png
View Post on Blog
在 GitHub 上直接搜微信表情,搜出来的多是 https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/0.gif 系列,但这些表情不仅已经过时,而且不清晰(如 ),甚至有白底。很不方便。
微信 APK
很自然会想到直接从官方网站下载的 APK 提取。但是会发现 APK 里只有在
assets/newemoji
里有一些新的 emoji。分辨率是 64x64 的,很令人满意。继续搜索
最后在微信开放社区里发现这个帖子,提到了 miniprogram-component-plus 项目中有微信的 emoji。在该项目中搜索 emoji 就有表情雪碧图的链接,如下图所示:
光有雪碧图还不够,难道要手动建立对应关系?继续在该项目下搜索就发现
src/emoji/emoji_positon.less
文件里有相应样式。注意事项
使用表情应当遵守微信相应许可。
The text was updated successfully, but these errors were encountered: