I'm very new to programming and phonegap. The animation of the gifs tested on computer seems to work fine but when exported to api and installed into my phone. The animation is laggy and glitchy. Any idea why this happened? Thank you.
Asked
Active
Viewed 268 times
0
-
What's the size of the image? – E. Sundin Jan 07 '16 at 02:41
-
They are quite large, ranging from 1.5MB to 3.9MB, there's 6 of them. I uploaded them to website and pulled them from the website. – Eggsnuff Jan 07 '16 at 02:45
-
Does it render properly via Chrome on the same device? Does it render properly when included with app and loaded from filesystem? – E. Sundin Jan 07 '16 at 02:50
-
Even via Chrome , the animation is laggy and glitchy. – Eggsnuff Jan 07 '16 at 02:59
-
Then the problem does not seem to be related to Phonegap. Your phone's processor might be too weak. You could try to use smaller gifs for testing and expecting to deploy to more powerful devices. Imgur uses videos instead of gifs to display gif animations. Perhaps that concept could be of some use for you to. – E. Sundin Jan 07 '16 at 03:10
-
Alright. Thanks for patient and help! – Eggsnuff Jan 07 '16 at 03:16
1 Answers
0
Gifs and Images blow up in size when testing on an emulated or actual phone. Certain mobile's even convert the image to a bitmap which makes the image ridiculously large. This covers the issue in better details.
The lag you are experiencing is most likely due to the phone not being strong enough to handle the GIF.
You can try running your app on an emulated phone with a lot of memory and see if the lag persists. Chances are it won't. Then slowly reduce the amount of memory on the phone and watch for the lag to appear.

Community
- 1
- 1

Filipe Teixeira
- 3,565
- 1
- 25
- 45