openshot.developers team mailing list archive
-
openshot.developers team
-
Mailing list archive
-
Message #04615
[Bug 623073] Re: Slow switch to "Transitions" and "Effects" tabs at first time
** Changed in: openshot
Status: Fix Committed => Fix Released
--
Slow switch to "Transitions" and "Effects" tabs at first time
https://bugs.launchpad.net/bugs/623073
You received this bug notification because you are a member of OpenShot
Developers, which is subscribed to OpenShot Video Editor.
Status in OpenShot Video Editor: Fix Released
Bug description:
Hello
There is a problem when switch to "Transitions" or "Effects" tab at first time, It's slow a little bit, And the problem will be worst if we have a lot of "Transitions" or "Effects".
For test purpose I added about 300 images in "transitions" directory, the switch became slower. Try it please, just make copies of existed transitions and see what happen :-)
The problem comes from this line
pbThumb = pbThumb.scale_simple(80, 62, gtk.gdk.INTERP_BILINEAR)
So, I made a small patch which deals with this problem by using cache, simply create a cache from the image then use the cached version as a thumb.
If this patch is accepted we will need to write a code to deal with cache generating, but temporary I wrote a small file to generate the cache (In attach : thumb-generator.py), put it in "openshot" directory then run it.
Sorry for my English :-)
References