deltachat / deltachat-android

Email-based instant messaging for Android.
GNU General Public License v3.0
1.12k stars 147 forks source link

GIFs from Gboard are sent as JPEG #3341

Open JoeMcNuggets opened 2 weeks ago

JoeMcNuggets commented 2 weeks ago
adbenitez commented 2 weeks ago

hi @JoeMcNuggets thanks for reporting, I just tried the steps you described but the GIFs look perfectly fine/animated to me and they have the proper .gif file name and mime type:

image

adbenitez commented 2 weeks ago

so maybe it is about the gboard version you are using? try upgrading, otherwise it is the specific GIFs files you are trying to use, then attach such GIF here so we can reproduce the problem, thanks in advance! :pray:

JoeMcNuggets commented 2 weeks ago

Yep, here's those GIFs:

https://media.tenor.com/kfhNaQpcRokAAAAM/yakuza-goro.gif https://media.tenor.com/ZFiYeG5v1MQAAAAM/goro-majima.gif https://media.tenor.com/U5zAnZCFzJcAAAAM/stop-sign-reporter.gif

But this one is just fine

https://media.tenor.com/JZ59uOv1keIAAAAM/%D1%82%D1%80%D0%BE%D0%BB%D0%BB%D1%84%D0%B5%D0%B9%D1%81.gif

On October 7, 2024, Dr Nic Williams @.***> wrote:

so maybe it is about the gboard version you are using? try upgrading, otherwise it is the specific GIFs files you are trying to use, then attach such GIF here so we can reproduce the problem, thanks in advance! 🙏

adbenitez commented 2 weeks ago

thanks I could reproduce now, only if I attach it from Gboard (I searched for "goro majima") but if I directly attach the GIF file using the attachment selector then the gif is sent fine,

it seems to be related to the file size, since the GIF is too big it seems Delta Chat core is compressing it and converting it to JPEG, I don't know why it only happens when the image comes from the Gboard keyboard tho, it is likely related to: https://stackoverflow.com/questions/48108889/gboard-enable-gif-insertion-on-edittext#48184426