mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
f482e681e3
commit
c210bf4b9e
@ -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 = "";
|
||||||
|
Loading…
Reference in New Issue
Block a user