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

@ -166,7 +166,7 @@ int ImageUtil::checkSize(QByteArray &bytearray, const QImage &img)
//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, "PNG", 0)) {
if (img.save(&buffer, "JPG", 0)) {
size = bytearray.length();
} else {
std::cerr << "ImageUtil: image can't be saved to buffer" << std::endl;