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

add gif compression #2

Merged
merged 6 commits into from
Mar 6, 2024
Merged

add gif compression #2

merged 6 commits into from
Mar 6, 2024

Conversation

Ovler-Young
Copy link
Owner

@Ovler-Young Ovler-Young commented Mar 6, 2024

Sending stickers from efb via telegram to WeChat often encounters errors like the one shown below. These errors mostly occur with animated stickers. Other user have such reports too.

WeChat error message image

After investigating, I found that these errors are likely due to WeChat's limit of 1 MB for GIF files used as stickers. Reducing the scale of the GIF can help reduce the file size, which is the main approach I took.

在微信发表情贴图经常会出错,错误信息如下,也有别人反馈

WeChat error message image

这类型错误主要是因为微信对表情贴图的GIF文件大小有1M的限制。这个PR中我主要是通过降低GIF的分辨率来缩小文件,来尽可能避免这种错误。

@Ovler-Young Ovler-Young changed the title add gif conversion and compression add gif compression Mar 6, 2024
@Ovler-Young Ovler-Young merged commit 9269edc into master Mar 6, 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

Successfully merging this pull request may close these issues.

1 participant