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

Unzip files with a different extension(like Telegram's tgs) #2313

Closed
Fra078 opened this issue Jun 11, 2023 · 1 comment · Fixed by #2435
Closed

Unzip files with a different extension(like Telegram's tgs) #2313

Fra078 opened this issue Jun 11, 2023 · 1 comment · Fixed by #2435

Comments

@Fra078
Copy link

Fra078 commented Jun 11, 2023

Is your feature request related to a problem? Please describe.
It's not possible to force lottie to read a zipped file with a different extension. I'm developing a telegram client, but telegram stickers are lottie files with images zipped into a .tgs file.

Describe the solution you'd like
I think that on Lottie Compose should be in the class LottieCompositionSpec.File a boolean argument that when is true will force lottie to ignore extension and try to unzip anyway (Throwing an error if the file is not a zip)

Describe alternatives you've considered
Add tgs as file format supported because Telegram is open source, so a lot of developers can have this issue

@kudanai
Copy link
Contributor

kudanai commented Oct 30, 2023

Adding some additional context here:

  1. lottie-android should be able to pick up a zip file regardless of the file extension, as it relies on the header for identification (if it's coming from assets/raw)
  2. tgs is not a zip file, it's actually gzip which is quite different. gzip is not (afaik) natively supported on java/android and will likely require additional dependencies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants