switched all image outputs to jpeg format instead of png

This commit is contained in:
csoler 2023-01-16 19:53:20 +01:00
parent f65a761c9d
commit 0a8f4b1b6e
14 changed files with 16 additions and 16 deletions

View file

@ -1094,7 +1094,7 @@ void ChatWidget::addChatMsg(bool incoming, const QString &name, const RsGxsId gx
QImage image(icon.pixmap(height,height).toImage());
QByteArray byteArray;
QBuffer buffer(&byteArray);
image.save(&buffer, "PNG"); // writes the image in PNG format inside the buffer
image.save(&buffer, "JPG"); // writes the image in PNG format inside the buffer
QString iconBase64 = QString::fromLatin1(byteArray.toBase64().data());
strPreName = QString("<img src=\"data:image/png;base64,%1\" alt=\"[unsigned]\" />").arg(iconBase64);
}