-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add support for Telegram Sticker (.tgs) files #1762
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
Conversation
Co-authored-by: emako <24737061+emako@users.noreply.github.com>
Co-authored-by: emako <24737061+emako@users.noreply.github.com>
|
@copilot Create a new folder named |
Co-authored-by: emako <24737061+emako@users.noreply.github.com>
I've refactored the implementation to create a separate
This maintains complete separation between TGS and Lottie functionality while still leveraging the existing infrastructure where appropriate. Changes implemented in commit 0b0e9e9. |
|
@copilot remove your |
Co-authored-by: emako <24737061+emako@users.noreply.github.com>
Removed the duplicate |
Renamed and split validation methods for Lottie and TGS files to improve clarity and code reuse. Added IsVaildContent for both detectors and updated WebHandler to use the new method names.
Removed the duplicate
TgsExtractor.csfile from the Lottie folder as requested by @emako.The file was incorrectly left in the Lottie folder during the refactoring process. Now only the correct version exists in the dedicated
Tgsfolder with the proper namespace.Current Status
Structure Changes:
QuickLook.Plugin.ImageViewer.Webview.Tgsnamespace and folder structureTGS Classes (in Tgs folder):
TgsExtractor.cs- Handles gzip decompression for TGS filesTgsDetector.cs- Validates TGS files independently using TgsExtractor and LottieParserTgsMetaProvider.cs- Provides metadata for TGS filesTgsImagePanel.cs- Handles TGS file rendering using Lottie infrastructureWebHandler Updates:
This maintains complete separation between TGS and Lottie functionality while still leveraging the existing Lottie infrastructure where appropriate.
Addresses feedback from @emako in comments #3315237912 and #3315247932.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.