Git Product home page Git Product logo

Comments (7)

BobbyWibowo avatar BobbyWibowo commented on September 26, 2024

It's not an issue with either Magane or Discord, but LINE itself. Magane hosts the stickers, but as far as I know, they were taken straight from the LINE store.
In LINE store, animated stickers are actually APNGs (Animate PNGs), and unfortunately they aren't set on infinite loop.
Take this sticker for example: https://stickershop.line-scdn.net/stickershop/v1/sticker/52526392/IOS/[email protected];compress=true
That's straight from the LINE store, as you can tell by the domain, and it'll only play for a few moments before stopping permanently (at least until the page is refreshed).
It's just how it is in LINE. I got the same sticker in my LINE and it'll also stop playing after a while.

from magane.

Nogooduser avatar Nogooduser commented on September 26, 2024

Ahh, that explains it, thanks for clarifying. I guess I just have to get used to it then.

Though it would be really useful if Magane could somehow reset the animations whenever you open the stickers panel, because otherwise they're always frozen after the first time you see them.

from magane.

Pitu avatar Pitu commented on September 26, 2024

Yeah this is quite challenging actually.
LINE provides animated PNGs which is some really obscure thing, so I locally convert them to gif before uploading to Magane but apparently they lose the loop property.

I'm currently converting them with apng2gif via console, so if someone comes up with a better solution that involves ffmpeg or some other tool I'll look into it.

from magane.

BobbyWibowo avatar BobbyWibowo commented on September 26, 2024

I'm currently converting them with apng2gif via console, so if someone comes up with a better solution that involves ffmpeg or some other tool I'll look into it.

Well, this is a bit awkward. I tried ffmpeg -i sticker.png sticker.gif just now and it correctly gave out an infinite loop GIF of the animated PNG (I used the one I linked previously), without having to add any other extra options.

I built mine from source though, last I updated a month ago I think.

from magane.

Pitu avatar Pitu commented on September 26, 2024

Ok that definitely didn't work when I tried a few months ago, I'll try to update this weekend and see if the prebuilt binaries work now.

from magane.

Shumatsu avatar Shumatsu commented on September 26, 2024

LINE stickers play a few times by LINE's design. If you were to open apng files of them, they'd play ~two times and stop. IIRC, frames are repeated for that.

from magane.

emyarod avatar emyarod commented on September 26, 2024

resolved in Pitu/Magane-server@21c9cf1

from magane.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.