I think it would be very attractive and modern if delta allows the visualization of the new animated telegram stickers, when they are sent as attachments.
Of course, taking into account that now they can be realized with FLOSS tools like Inkscape.
Or animated svg.
Telegram stickers are using Lottie format.
Specifically they use Samsung implementation with all its limitations, they have to be taken into account if compatibility is needed.
they are attractive and much more smaller/data-saver than webp, gif, png etc. it is a win-win
In comparison with Lottie and .tgs SVG support animations too and the official lottie-web makes a conversion to SVG through a player for web use, the same lib used in the plugin for the propietary Adobe After Effects.
SVG has both normal and gzip compressed version. I think that being an standard in comparison to Lottie or .tgs would be better if a conversion is made or its support is preferent.
There is a python library being worked for full conversion as well as experimental exporting feature for some Libre Tools being the only one doing it as far I saw: https://gitlab.com/mattia.basaglia/python-lottie/
As far as I know SVG supports animation via JavaScript. It means a sticker in SVG is a computer program that you have to execute to show it.
Conversion from Lottie to SVG is possible, but it is impossible to convert SVG back to Lottie, because SVG is not just a format for animation, it is more like what Flash was.
It’s true that Lottie has no formal specification or standard, but it is simpler, has multiple open implementations and an unofficial specification, so it has all means to become a open de-facto standard for vector animations.
No, SVG has animation also without JS and is a format prepared for animation as written in the own specification with SMIL as recommended.
I was just about to link to SMIL too. How is the library support for it?
Browsers:
Android:
iOS:
- (I am searching)
https://developer.android.com/guide/topics/graphics/vector-drawable-resources does not seem to be SMIL, but some android-specific animation format.
Yes, I am still searching, it was pointed from a conversion to use that as its native for it and I took it into account a moment ago, sorry.
Where can I check image format state support on Android. It’s obvious that, at least, static svgs are supported for Android app icons but seems that most of my search are for basic use as that and I wanted to know where can I see the state in general of the SVG support.
I got a little idea here.
Android WebView as well as Safari iOS (and WebKit WebView) allow rendering animated SVGs (and static ones) inside a basic HTML page.
A little time ago, ADBenitez told me that there was some hype to integrate ZHV into Delta Chat for bots options integration use. That took into my memories the way Telegram shows buttons and options in a message bubble for bot use but taking into account that HTML, CSS and possibly JS is in use for it.
I also remembered that Telegram had some HTML5 games integrated in the chats in certain sense, so my idea was the following:
- Integrate webview in Delta Chat for bot use and look for a way to do it inside message bubbles.
- Rework DeltaBot options to fit inside message bubbles as Telegram does.
- Encapsulate SVG/SVGz inside an HTML with meta tags for info to what you need (sticker pack, etc) and use the integrated webview to render them inside the own message.
The bubble used for the message that has an integrated webview could be put as transparent.
I don’t include desktop client here because uses electron which already support SVG/SVGz in that way natively.
I didn’t reply to this before.
The open implementations are just to show/render them. The creation of these files still need propietary tools and the unofficial specification is made by reverse engineering. Only a little work for the creation through libre tools is being made in Glax / python-lottie · GitLab which has some experimental plugins for Inkscape and Synfig.
that is right
Lottie will become a proper standard: Lottielab Blog - Lottie is now a part of the Linux Foundation
proper android support is blocked by missing core support, it should receive tags files as sticker message type not as file.
So we might add this soon(ish)?
Maybe it would then make sense to integrate these emojis into DC?
Either as stickers or as optional animated emojis like in Telegram.
They are licensed under CC-BY 4.0. As far as I know it is allowed to use them.
I already use the WebP versions as stickers.
Interesting idea, maybe sth. for a dedicated proposal.
We already display messages with only some emojis in a bigger font-size than the other messages.
Telegram displays single emojis as a big animated one, we could replicate this behaviour with the animated noto emojis. Though I still wonder wether they would also fit into the variants of deltachat that run on apple devices and thus use apple’s emoji set that look different to the noto emojis
If I remember correctly, users can decide in the Telegram settings whether they want to use normal large emojis or animated large emojis.
Good point. But I don’t think it would be a problem because, as far as I know, the animated emojis in Telegram look the same on every platform.
The appearance between the normal and the animated emojis is therefore also different there.