← Back to team overview

openshot.developers team mailing list archive

[Bug 623073] Re: Slow switch to "Transitions" and "Effects" tabs at first time

 

The patch for windows/TreeEffects.py

** Patch added: "treeEffects.patch"
   https://bugs.launchpad.net/openshot/+bug/623073/+attachment/1514464/+files/treeEffects.patch

-- 
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: New

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