KDE Bug Tracking System
Home
Report New Wish or Bug
Query Existing Reports
First
Last
Prev
Next
No search results available
Search page
Bug
101665
:
Contact photos wider than they are tall don't k...
P
roduct
:
kopete
Co
m
ponent
:
Contact list
Status
:
RESOLVED
Resolution
:
FIXED
Target
:
---
Version
:
0.10
Pr
i
ority
:
NOR
Severity
:
normal
V
otes
:
0
Description
:
Opened:
2005-03-17 07:33
Last Changed:
2005-03-31 10:28:51
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.
Comment
#1
Timo Springmann 2005-03-27 01:01:54
I can confirm this behaviour on debian/sid kde3.4 kopete 0.10.
Comment
#2
Olivier Goffart 2005-03-31 10:28:51
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 ); }
P
latform
:
unspecified
O
S
:
Linux
K
eywords
:
People
Reporter
:
Assigned To
:
Kopete Developers
Related actions
View Bug Activity
Format For Printing
XML
Clone This Bug
Note
You need to
log in
before you can comment on or make changes to this bug.
Attachments
Add an attachment
(proposed patch, testcase, etc.)
Depends on
:
B
locks
:
Show dependency tree
-
Show dependency graph
First
Last
Prev
Next
No search results available
Search page
Actions
Reports
Requests
Reports
Bugs reported today
Bugs reported in the last 3 days
Bug reports with patches
Weekly Bug statistics
The most hated bugs
The most severe bugs
The most frequently reported bugs
The most wanted features
Junior Jobs
Report ownership counts and charts
My Account
New Account
Log In