Version: 0.10 (using KDE 3.4.0, Debian Package 4:3.4.0-0pre1 (3.1)) Compiler: gcc version 3.3.5 (Debian 1:3.3.5-8) OS: Linux (i686) release 2.6.8-2-686 If I have an image associated with a contact which is wider than it is tall (landscape orientation), Kopete scales it to a square, which squashes it. Square images and images with a portrait orientation don't have this problem.
I can confirm this behaviour on debian/sid kde3.4 kopete 0.10.
CVS commit by ogoffart: Fix Bug 101665: Contact photos wider than they are tall don't keep their correct aspect BUG: 101665 M +2 -4 kopetemetacontactlvi.cpp 1.116 --- kdenetwork/kopete/kopete/contactlist/kopetemetacontactlvi.cpp #1.115:1.116 @@ -525,14 +525,12 @@ void KopeteMetaContactLVI::slotPhotoChan { int photoSize = d->photoSize; - float ratio = float(photoImg.width())/float(photoImg.height()); - int newsize =int(float(photoSize*ratio)); if ( photoImg.width() > photoImg.height() ) { - photoImg = photoImg.smoothScale( photoSize, newsize ); + photoImg = photoImg.smoothScale( photoSize, photoSize * photoImg.height() / photoImg.width() ) ; } else { - photoImg = photoImg.smoothScale( newsize, photoSize ); + photoImg = photoImg.smoothScale( photoSize * photoImg.width() / photoImg.height() , photoSize ); }
You need to log in before you can comment on or make changes to this bug.