mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-25 23:06:10 -05:00
fixed bug in quality of html-embedded images
This commit is contained in:
parent
7aacfb9aef
commit
e60ee730b4
@ -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();
|
//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 (buffer.open(QIODevice::WriteOnly)) {
|
||||||
if (img.save(&buffer, format, 0)) {
|
if (img.save(&buffer, format, 85)) {
|
||||||
size = bytearray.length();
|
size = bytearray.length();
|
||||||
} else {
|
} else {
|
||||||
std::cerr << "ImageUtil: image can't be saved to buffer" << std::endl;
|
std::cerr << "ImageUtil: image can't be saved to buffer" << std::endl;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user