[Bug 307570] New: Don't always recompress contact photos when saving

asamk at gmx.de asamk at gmx.de
Sat Sep 29 12:37:27 BST 2012


https://bugs.kde.org/show_bug.cgi?id=307570

            Bug ID: 307570
          Severity: normal
           Version: 4.9
          Priority: NOR
          Assignee: kdepim-bugs at kde.org
           Summary: Don't always recompress contact photos when saving
    Classification: Unclassified
                OS: Linux
          Reporter: asamk at gmx.de
          Hardware: openSUSE RPMs
            Status: UNCONFIRMED
         Component: kabc
           Product: kdepimlibs

When editing a contact in kaddressbook the contact photo is always recompressed
when clicking Ok. So everytime I edit a contact the quality of the photo
decreases.

I've had a look at the source code. When a contact is loaded into a
KABC::Addressee object, the base64 photo data is stored into a KABC::Picture
object as a QImage. When the contact is saved, the photo is compressed as jpeg
again (with the default quality 75%).

A solution would be to also save the raw base64 data in KABC::Picture and to
only recompress the photo when it was really changed.

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list