Bug 94547

Summary: Maintain aspect ratio when scaling mail folder icons
Product: [Applications] kmail Reporter: Tristan Miller <psychonaut>
Component: folder listAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: dominik.tritscher, jtamate, lemma
Priority: NOR Keywords: triaged
Version: 1.5.1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Tristan Miller 2004-12-06 17:13:57 UTC
Version:            (using KDE KDE 3.3.1)
Installed from:    SuSE RPMs

Steps to reproduce:

1. right click on a mail folder
2. Properties
3. General
4. check Folder Icons->Use custom icons
5. click Normal icon button
6. Browse...
7. Navigate through your file system to find and select any non-square graphic file (i.e., a graphic with dimensions w×h, where w != h)
8. Open

Observed behaviour:

The icon shown is now scaled to 16×16, resulting in an ugly, stretched appearance.

Expected behaviour:

If w > h, the icon should have been scaled to 16×(16h/w) and vertically centered.
If h > w, the icon should have been scaled to (16w/h)×16 and horizontally centered.
Comment 1 Dominik Tritscher 2008-09-14 18:14:43 UTC
This seems to be fixed in KDE4 (testing with kmail from trunk r860647).
Comment 2 Jaime Torres 2008-09-16 20:04:06 UTC
works for me also in trunk.