-
Notifications
You must be signed in to change notification settings - Fork 628
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 support of animated sticker #78
base: master
Are you sure you want to change the base?
Conversation
5742ac5
to
78ce8aa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much for this PR! I am in no way associated with this project or repo, but discovered your fork yesterday and rebased on it. Apart from the two comments below, this works perfectly!
I'll be real, animated stickers have left me stuck with telegram for way too long, it's incredible that this is now possible. I can't imagine I'm the only one, so I'll sneakily ping @tulir to ask if this is on your radar? 👀
…hannel In our testing, the method of exclusively processing the Alpha channel yielded the best results. This approach focuses on adjusting transparency while preserving the RGB color information, which prevents color distortion and maintains image detail. Key reasons for the improvement include: - Protecting RGB from color alterations, avoiding color seepage and contamination. - Precisely removing unwanted semi-transparency in the Alpha channel, eliminating white edges. - Simplifying the process, reducing complexity, and minimizing risk of introducing new issues. By targeting transparency issues directly in the Alpha channel, we achieve cleaner edges without compromising the image's color quality and detail.
I had find a way to improved conversion of semi-transparent pixels to GIF. Anyone who needs it can test it
After 86cb2ed |
Finally, we complete the WebM -> (remove PVx) WebP -> (remove semi-transparency) GIF / (detect static) PNG More detail at: https://xzos.net/webm-webp-to-gif-with-semi-transparency/ |
Include lottie and webm
Fix #74