Bug 148803 - chat windows takes 10 seconds to pop up if custom image is set for contact
Summary: chat windows takes 10 seconds to pop up if custom image is set for contact
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kopete
Classification: Unmaintained
Component: Chat Window (other bugs)
Version First Reported In: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
: 151154 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-08-13 21:35 UTC by Andreas Pietzowski
Modified: 2024-09-18 18:26 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Pietzowski 2007-08-13 21:35:03 UTC
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
Comment 1 Jan Ritzerfeld 2007-08-13 21:52:28 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?
Comment 2 Andreas Pietzowski 2007-08-13 22:05:44 UTC
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
Comment 3 Jan Ritzerfeld 2007-08-13 22:16:20 UTC
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.
Comment 4 Andreas Pietzowski 2007-08-13 22:35:25 UTC
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?
Comment 5 Jan Ritzerfeld 2007-08-18 20:59:12 UTC
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.
Comment 6 Andreas Pietzowski 2007-08-18 21:34:44 UTC
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
Comment 7 Jan Ritzerfeld 2007-10-21 21:17:43 UTC
*** Bug 151154 has been marked as a duplicate of this bug. ***
Comment 8 Christoph Cullmann 2024-09-18 18:26:48 UTC
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.