| Summary: | chat windows takes 10 seconds to pop up if custom image is set for contact | ||
|---|---|---|---|
| Product: | [Unmaintained] kopete | Reporter: | Andreas Pietzowski <andreas> |
| Component: | Chat Window | Assignee: | Kopete Developers <kopete-bugs-null> |
| Status: | RESOLVED UNMAINTAINED | ||
| Severity: | wishlist | CC: | l.arvanitis |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Andreas Pietzowski
2007-08-13 21:35:03 UTC
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. |