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

Request: add support for animated files : GIF, WEBP, HEIF, AVIF #662

Open
AndroidDeveloperLB opened this issue Dec 31, 2018 · 6 comments
Open
Projects

Comments

@AndroidDeveloperLB
Copy link

Also, please allow to go over each of the frames, and know how long to wait between them.
This is in case we would like to do play the animation manually.

@soywiz
Copy link
Member

soywiz commented Jan 17, 2019

Either:
https://github.com/soywiz/ktcc
https://github.com/soywiz/wasm2kt
should help here.
Though my objective is to mature ktcc enough to convert comments and actual structures to kotlin so the code is nicer and could be ported to plain kotlin later easily.

@AndroidDeveloperLB
Copy link
Author

I don't understand how those links are related to decoding of animated image files....

@soywiz
Copy link
Member

soywiz commented Jan 17, 2019

The libraries for decoding/encoding those imaging formats are written in C.

With Kotlin/Native we are served. But KorIM is written in Kotlin Common and provides support for JVM and JS and ideally I want to support other things lije TeaVM or JTransc. So I need to convert them into Kotlin without JNI or emscripten and only provide native libraries as an optimization.

@AndroidDeveloperLB
Copy link
Author

I see.
But I think that on Android it doesn't matter so much now, as code is converted to machine like language, making your Java/Kotlin code very near C in terms of performance.
No?

@soywiz
Copy link
Member

soywiz commented May 1, 2020

Animated GIF implemented

@AndroidDeveloperLB
Copy link
Author

Nice!

@soywiz soywiz transferred this issue from korlibs-archive/korim Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Pending
Korlibs
Long-term
Development

No branches or pull requests

2 participants