How speed-up gif loading

313 views
Skip to first unread message

francesco cerone

unread,
Jan 28, 2017, 11:23:04 AM1/28/17
to Kivy users support
Hi at All,
I'm new on kivy and python,
I'm implementing an app with Kivy that should some giffs, but the loading of them is very slow,

this is how show my gifs:

def add_gif(self, imageFileName):

        with self.canvas:

            self.canvas.clear()

            _im = Image(source="resources/gifs/"+ imageFileName + ".gif", anim_delay=0.1, pos=(0, 0))

            _im.keep_data = True

            _im.keep_ratio= True

            _im.allow_stretch = True

            _im.size =ScreenResolution.width, ScreenResolution.height


i have read on web that o can use the property: _im.keep_data = True, to have speed-up on second time of loading, but it doesn't work fine,

There is any suggest to speed this loading??

Thanks

Ivan Acevedo

unread,
Jan 28, 2017, 12:20:46 PM1/28/17
to Kivy users support
Use smaller images.

francesco cerone

unread,
Jan 29, 2017, 10:23:24 AM1/29/17
to kivy-...@googlegroups.com
Hi, thanks for suggest,
but my gifs are already small, about 500x500 whit 30 frames, 618 KB,
there aren't any other methods?



Cordiali Saluti
Francesco Cerone

2017-01-28 18:20 GMT+01:00 Ivan Acevedo <ivanla...@gmail.com>:
Use smaller images.

--
You received this message because you are subscribed to a topic in the Google Groups "Kivy users support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kivy-users/4jcIvuAYg0A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kivy-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

francesco cerone

unread,
Feb 10, 2017, 4:15:55 AM2/10/17
to kivy-...@googlegroups.com
I have found work around: convert giff into zipped file of image....
very very Faster!!!!



Cordiali Saluti
Francesco Cerone

anc...@gmail.com

unread,
Apr 22, 2017, 9:36:26 AM4/22/17
to Kivy users support
hi, i noticed you tried in creating a jar for this project: http://cheparev.com/kivy-receipt-notifications-and-service/
did the notification work? 


On Saturday, January 28, 2017 at 5:20:46 PM UTC, Ivan Acevedo wrote:
Use smaller images.

Ivan Acevedo

unread,
Apr 25, 2017, 8:52:40 AM4/25/17
to Kivy users support
Sorry for answering so late.
If it worked very well, I actually posted it here but it seems to have erased it.
Anyway I also posted it here:
Reply all
Reply to author
Forward
0 new messages