stickers icon indicating copy to clipboard operation
stickers copied to clipboard

[Android] Sticker file might be corrupted or invalid

Open ghost opened this issue 3 years ago • 9 comments

Specifications
Android Version: 10 Device Manufacturer: Samsung Galaxy A40

Stickers

  • [x] My stickers do comply with all animated sticker requirements

Problem Description
I have downloaded the latest Android demo app version and I've changed the animated sticker pack with my stickers. I'm getting an Sticker file might be corrupted or invalid error when adding the animated sticker pack. error-1 error-2 The problem is with the last sticker (Winnie Pooh) because when I do not add it in the content.json, I can add the animated sticker pack with no problem. My question is why am I getting this error when my sticker complies with all requirements? winnie_pooh.zip

Thank you in advance.

ghost avatar Mar 08 '21 18:03 ghost

same with me. I make 10 animation sticker but 4 of them is not able to add in WhatsApp. The other 6 files are working fine on WhatsApp. don't know why it's happening. Following validation,

  1. animation sticker 512*512
  2. less than 500KB
  3. second 0.8 ms to 10 ms I am following all requirements as listed in the guideline Attaching animation sticker file. someone, check and guides me where is my mistake in the animation file. many developers is facing the same issue in my community. @simonzhexu please answer as soon as possible. animation_sticker_not_working.zip

imagetag6608 avatar Mar 13 '21 13:03 imagetag6608

Hi @imagetag6608 , I had looked your file, i was tried look into your gif file 1.gif, and when i delete 1 frame with 13 ms delay, i can add it to WhatsApp, maybe you should check another gif and try to delete frame with over 10 ms delay. 1

And here is the proof i can add it to WhatsApp image

yamaroni avatar Mar 15 '21 01:03 yamaroni

I wonder how can @imagetag6608 use an animated sticker that does not comply with one of the requirements:

Animated stickers must have frames with minimum duration of 8ms

the2hl avatar Mar 15 '21 15:03 the2hl

@the2hl yes i did not understand. i am new in animation things and I am using photoshop frame animation. can you please guide me how can I send 8ms between two frames or explain the thing rule. if yes then its big thank you.

And the rule is 8ms minimum between two frames, so @coroman image has 3ms delays for every frame. so how its work?

I know its all every basic question but I did not have proper knowledge so sorry for that.

imagetag6608 avatar Mar 16 '21 13:03 imagetag6608

Hi @imagetag6608. I'm also new in animation and I am using GIMP as image editor. In GIMP, you can set the frame duration between parenthesis: (XX ms) image You can check this tutorial: https://www.linuxtopia.org/online_books/graphics_tools/gimp_advanced_guide/gimp_guide_node80_001.html According to the requirements (README.md), you should set at least a 8ms frame duration. I don't know why @imagetag6608 has been able to add your sticker having frames with 3ms duration.

the2hl avatar Mar 16 '21 17:03 the2hl

@the2hl yes i did not understand. i am new in animation things and I am using photoshop frame animation. can you please guide me how can I send 8ms between two frames or explain the thing rule. if yes then its big thank you.

And the rule is 8ms minimum between two frames, so @coroman image has 3ms delays for every frame. so how its work?

I know its all every basic question but I did not have proper knowledge so sorry for that.

@imagetag6608 There is one frame with 13ms delay when i looked up into

yamaroni avatar Mar 17 '21 01:03 yamaroni

Hi @imagetag6608 , I had looked your file, i was tried look into your gif file 1.gif, and when i delete 1 frame with 13 ms delay, i can add it to WhatsApp, maybe you should check another gif and try to delete frame with over 10 ms delay.

I can't understand why pack is available after deleting a frame with over 10ms delay. Anyone or @coroman knows it? I could not find it from requirements.

BattleShipPark avatar Mar 18 '21 06:03 BattleShipPark

Hi @imagetag6608 , I had looked your file, i was tried look into your gif file 1.gif, and when i delete 1 frame with 13 ms delay, i can add it to WhatsApp, maybe you should check another gif and try to delete frame with over 10 ms delay.

I can't understand why pack is available after deleting a frame with over 10ms delay. Anyone or @coroman knows it? I could not find it from requirements.

@BattleShipPark Actually, i didn't know either. But @imagetag6608 says that his stickers is under 10 ms, and when i looked up and founded one with 13 ms delay, then after delete it, i can add the sticker to whatsapp.

yamaroni avatar Mar 19 '21 01:03 yamaroni

@coroman Thanks. Additionally, that frame is not 13ms but 130ms because ezgif uses 1/100 second not 1/1000 second

@simonzhexu I believe there is a bug in WA. Some frames with different duration might make problem.

BattleShipPark avatar Mar 19 '21 01:03 BattleShipPark