mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-12 01:09:26 -04:00
fixed bug in quality of html-embedded images
This commit is contained in:
parent
7aacfb9aef
commit
e60ee730b4
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue