From e60ee730b45f63b3b52e3e5066382227fa4a0e33 Mon Sep 17 00:00:00 2001 From: csoler Date: Mon, 16 Jan 2023 22:23:58 +0100 Subject: [PATCH] fixed bug in quality of html-embedded images --- retroshare-gui/src/util/imageutil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retroshare-gui/src/util/imageutil.cpp b/retroshare-gui/src/util/imageutil.cpp index 7553f7c14..d710a9ae3 100644 --- a/retroshare-gui/src/util/imageutil.cpp +++ b/retroshare-gui/src/util/imageutil.cpp @@ -188,7 +188,7 @@ int ImageUtil::checkSize(QByteArray &bytearray, const QImage &img,const char *fo //std::cout << QString("Trying image: format PNG, size %1x%2, colors %3\n").arg(img.width()).arg(img.height()).arg(img.colorCount()).toStdString(); if (buffer.open(QIODevice::WriteOnly)) { - if (img.save(&buffer, format, 0)) { + if (img.save(&buffer, format, 85)) { size = bytearray.length(); } else { std::cerr << "ImageUtil: image can't be saved to buffer" << std::endl;