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

我是如何获得微信内置表情的 #156

Open
AllanChain opened this issue Dec 28, 2020 · 0 comments
Open

我是如何获得微信内置表情的 #156

AllanChain opened this issue Dec 28, 2020 · 0 comments
Labels
blog: programming @post This is a blog post tag: android |182765503-22cbf4f9-60ce-47a1-8e00-fc731d2f4100.png

Comments

@AllanChain
Copy link
Owner

AllanChain commented Dec 28, 2020

View Post on Blog

授人以鱼,不如授人以渔。虽然百度出来有很多下载资源,但并没有讲怎么获得的(毕竟天朝特色)


在 GitHub 上直接搜微信表情,搜出来的多是 https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/0.gif 系列,但这些表情不仅已经过时,而且不清晰(如 emoji demo),甚至有白底。很不方便。

微信 APK

很自然会想到直接从官方网站下载的 APK 提取。但是会发现 APK 里只有在 assets/newemoji 里有一些新的 emoji。分辨率是 64x64 的,很令人满意。

继续搜索

最后在微信开放社区里发现这个帖子,提到了 miniprogram-component-plus 项目中有微信的 emoji。在该项目中搜索 emoji 就有表情雪碧图的链接,如下图所示:

Emoji Sprite

光有雪碧图还不够,难道要手动建立对应关系?继续在该项目下搜索就发现 src/emoji/emoji_positon.less 文件里有相应样式。

注意事项

使用表情应当遵守微信相应许可。

@AllanChain AllanChain added the @WIP The post is working in progress label Dec 28, 2020
@AllanChain AllanChain added @post This is a blog post blog: programming and removed @WIP The post is working in progress labels Dec 28, 2020
@AllanChain AllanChain changed the title 我如何获得微信的内置表情 我是如何获得微信内置表情的 Dec 28, 2020
@AllanChain AllanChain added the tag: android |182765503-22cbf4f9-60ce-47a1-8e00-fc731d2f4100.png label Mar 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blog: programming @post This is a blog post tag: android |182765503-22cbf4f9-60ce-47a1-8e00-fc731d2f4100.png
Projects
None yet
Development

No branches or pull requests

1 participant