set default picture dimensions to 640*480 like same as embeded html image

* set default picture dimensions to 640*480 like same as embeded html image
This commit is contained in:
defnax 2020-01-06 14:35:57 +01:00
parent f482e681e3
commit c210bf4b9e

View File

@ -190,7 +190,7 @@ void PostedCreatePostDialog::addPicture()
} }
QImage opt; QImage opt;
if(ImageUtil::optimizeSizeBytes(imagebytes, image, opt, 800*600, MAXMESSAGESIZE - 2000)) { //Leave space for other stuff if(ImageUtil::optimizeSizeBytes(imagebytes, image, opt, 640*480, MAXMESSAGESIZE - 2000)) { //Leave space for other stuff
ui->imageLabel->setPixmap(QPixmap::fromImage(opt)); ui->imageLabel->setPixmap(QPixmap::fromImage(opt));
} else { } else {
imagefilename = ""; imagefilename = "";