Version: 0.12.6 (using KDE 3.5.7 "release 64.1" , openSUSE ) Compiler: Target: i586-suse-linux OS: Linux (i686) release 2.6.18.2-34-bigsmp Hello, when you define a custom image for a contact (due to missing photo in its IM account) then kopete takes up to 5 seconds to open up the chat window and another 5 seconds to layout the HTML from the theme. Other accounts open up immediately when a image is used from the protocol account. Kopete also freezes if a message from such a contact comes in. I hope you can reproduce this. Otherwise I have to look more into detail and get more information about this bug. Have a nice day Andreas
I have defined many custom images and cannot reproduce your problem. But, I rescaled these images down to approximately 100px. How large are your pictures?
Hi, yes this solves the problem. It was 640x480. Now its as fast as the other pictures. But I also code with Qt and I also use the QImage::scale() method but this is very fast. Something really comsumes the CPU for 10 seconds when using a bigger image. Do you have any idea? I think I will not be the only person in the world with that problem ;) Bye Andreas
IIRC kopete uses KHTML for rendering chats. For me, this was horrible slow for fixed background images and smooth scrolling; konqueror suffered from the same issue. You might try whether a simple html page with a similarly scaled image opens comparable slow in konquerer.
OK, then wouldn't it be a solution to copy the image to ~/.kde/share/apps/kopete/contactphotos (or wehrever) and scale it down in advance? This would also avoid the problem that if you (re)move the picture in your normal picture folder that kopete still finds the picture? What do you think?
On first glance, copying and rescaling seems to be a good idea. But, to which size pictures should be scaled? On different computers, different sizes may be appropriate. Different chat styles may show images in a different size. So, a general, fixed "limit" cannot be stated, IMHO. In contrast, images in the contact list have a predefined, fixed size, so scaling is possible. However, a detailed discussion should be held on the mailinglist.
My first solution would be as follows. E.g. if the user chooses an image you copy the image "pic.jpeg" as it is to a mirror-directory inside ~/.kde and then if some widget needs thois picture lets say in 30x50 then you first look if you find a file calles pic_30x50.jpeg in the same directory. If not, you create one by scaling the copied original and then you naver have to time to scale it again because of the "chache algorithm". Understand what I mean? Sorry for answering here and not in the mailing list but it was faster. Maybe you give me the mailing list address... Bye Andreas
*** Bug 151154 has been marked as a duplicate of this bug. ***
Dear user, unfortunately Kopete is no longer maintained. Please migrate to another solution, e.g. for Jabber a possibility is Kaidan, for Matrix a candidate is NeoChat.