[Bug 307570] Don't always recompress contact photos when saving
Laurent Montel
montel at kde.org
Sun Sep 30 09:53:09 BST 2012
https://bugs.kde.org/show_bug.cgi?id=307570
--- Comment #2 from Laurent Montel <montel at kde.org> ---
"jpeg again (with the default quality 75%)." .?
QString Picture::toString() const
{
QString str;
str += QLatin1String( "Picture {\n" );
str += QString::fromLatin1( " Type: %1\n" ).arg( d->mType );
str += QString::fromLatin1( " IsIntern: %1\n" ).
arg( d->mIntern ? QLatin1String( "true" ) : QLatin1String( "false" )
);
if ( d->mIntern ) {
QByteArray data;
QBuffer buffer( &data );
buffer.open( QIODevice::WriteOnly );
d->mData.save( &buffer, "PNG" );
str += QString::fromLatin1( " Data: %1\n" ).arg( QString::fromLatin1(
data.toBase64() ) );
} else {
str += QString::fromLatin1( " Url: %1\n" ).arg( d->mUrl );
}
str += QLatin1String( "}\n" );
return str;
}
it's store as png no ?
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Kdepim-bugs
mailing list