signalapp / Signal-iOS

A private messenger for iOS.
https://signal.org
GNU Affero General Public License v3.0
10.84k stars 3.05k forks source link

Animated Stickers not playing on mobile devices #5320

Open danieltang34 opened 2 years ago

danieltang34 commented 2 years ago

I created the sticker on a windows PC client The stickers works great on PC However it becomes a static picture when viewed on a mobile device (not just me but also my friends) Here’s the sticker link https://signal.art/addstickers/#pack_id=3806e00599303bcbe1b21e3daab6a574&pack_key=96ed9d3b7d0b99d61e01b6cb775badf3615ff305915c94106374c7c1fcf8f015

https://signal.art/addstickers/#pack_id=8661baf3250b89b5d60a310a98fdcfa8 &pack_key=8ba92bb93be189e4a7a8a615bb3f7dc958856458f8ada788c6106cf2d4f7306f

0xMQQ commented 2 years ago

I had the exact same issue. I found at least 2 previous issues (#4782 #4611 ) that discuss the same problem, but it still hasn't been resolved. Looks like it is a png rendering bug that only affects iOS.

stale[bot] commented 2 years ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

cpohli commented 2 years ago

Same here, seems to be a specific IOS problem, as Signal on desktop renders and animates them correctly. Sticker link: https://signalstickers.com/pack/25c17c28406a7f176a86c6564893f4b7

jademcs commented 2 years ago

I'm still seeing this issue as well.

Any chance it could be a problem with the YYImage library that you're using? I checked it out on GitHub and it no longer seems to be a maintained project.

Was able to find this alternative that seems to be actively supported: https://github.com/onevcat/APNGKit

ilvon commented 1 year ago

This issue still exists. The animated stickers in .png can render on Android and Windows client but not for iOS.

Tursko commented 1 year ago

Here is an example pack

https://signalstickers.com/pack/8dd301e0ed9f45dfc232774ae845780e

shuffle2 commented 1 year ago

I ran into this issue as well. I recently made a sticker pack with apngs, however only a few animate on ios, while they all animate on the desktop client. I assume it's the same root case, but unfortunately I'm not sure how to obtain the link to the pack again to post it here...

jackwong0519 commented 1 year ago

Not sure if my solution would work for you guys. I used an online tool to create an APNG file for my sticker. So it came with meta data I suppose.

Then I used an optimisation tool from the same website https://ezgif.com/optipng. Removed the metadata and re-uploaded my stickers. It actually worked.

Leonard53 commented 1 year ago

Not sure if my solution would work for you guys. I used an online tool to create an APNG file for my sticker. So it came with meta data I suppose.

Then I used an optimisation tool from the same website https://ezgif.com/optipng. Removed the metadata and re-uploaded my stickers. It actually worked.

Can confirm this works. I used exifcleaner to remove the metadata if anyone is curious.

Miguel-Signal commented 1 year ago

If you have ensured your images meet all the requirements for a Sticker and they still do not animate, please write in to support@signal.org with your debugs logs so we can look into it further.

To share a debug log from Signal iOS, tap your profile, Settings, Help, Submit Debug Log, and copy the link.

Sticker Requirements: Non-animated stickers must be a separate PNG or WebP file Animated stickers must be a separate APNG file. Please do not upload GIFs Each sticker has a size limit of 300kb Animated stickers maximum animation length of 3 seconds Stickers resize to 512 x 512 px Assign one emoji to each sticker Maximum 200 stickers per pack Cover must be a 512 x 512 px PNG or WebP file (defaults to first image in sticker pack) Title Author

kaugummiheld commented 1 year ago

Hi at all!

I'm almost sure it has not just something to do with stickers, but with playing GIFs in Signal iOS in general. I just sent my partner (iOS, Version 6.38.0.13) a GIF (from Desktop). My Android phone is rendering it normally, but she can't see it at all.

I've found the following issues: #4641 & #5102 They are closed, but the issue still seems to persist.

Brog33 commented 9 months ago

There is still a problem with this. My animated stickers work fine in the Android and Desktop clients, but it's static in iOS.

UPDATE: ran them in the exifcleaner and they works now.

shimamizu commented 7 months ago

Still an issue

swcolegrove commented 3 months ago

i have been using ezgif to convert gifs to animated pngs and crop them

I was having this problem when i converted .gif files to animated png files and then cropped the .png files to make them square. I was able to fix the broken animated stickers in ios by first cropping the .gif and then converting it to an animated png

km9l commented 1 month ago

still an issue

2 exif tags seem to be causing this: Software and Comment.

Software                        : ezgif.com
Comment                         : PNG created with https://ezgif.com/apng-maker

using exiftool (exiftool -Software= -Comment= image.png) fixes this

second thought: this might be caused by any exif tag. exiftool -all= image.png will probably work better