Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] Sticker file might be corrupted or invalid #750

Open
1 task done
ghost opened this issue Mar 8, 2021 · 9 comments
Open
1 task done

[Android] Sticker file might be corrupted or invalid #750

ghost opened this issue Mar 8, 2021 · 9 comments
Assignees
Labels
Android android issues

Comments

@ghost
Copy link

ghost commented Mar 8, 2021

Specifications
Android Version: 10
Device Manufacturer: Samsung Galaxy A40

Stickers

  • 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 ghost added the Android android issues label Mar 8, 2021
@ghost ghost assigned simonzhexu Mar 8, 2021
@ghost ghost changed the title [Android] [Android] Sticker file might be corrupted or invalid Mar 8, 2021
@imagetag6608
Copy link

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

@yamaroni
Copy link

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

@ghost
Copy link
Author

ghost commented Mar 15, 2021

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

@imagetag6608
Copy link

imagetag6608 commented Mar 16, 2021

@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.

@ghost
Copy link
Author

ghost commented Mar 16, 2021

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.

@yamaroni
Copy link

@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

@BattleShipPark
Copy link

BattleShipPark commented Mar 18, 2021

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.

@yamaroni
Copy link

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.

@BattleShipPark
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android android issues
Projects
None yet
Development

No branches or pull requests

4 participants