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

            Bug ID: 307570
          Severity: normal
           Version: 4.9
          Priority: NOR
          Assignee: [email protected]
           Summary: Don't always recompress contact photos when saving
    Classification: Unclassified
                OS: Linux
          Reporter: [email protected]
          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.
_______________________________________________
Kdepim-bugs mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kdepim-bugs

Reply via email to