Removed downscaling of 2560px images before displaying them

Fixes #2206
This commit is contained in:
Lesiuk 2022-12-19 11:12:26 +01:00 committed by John Preston
parent 351a2eee08
commit 0f3ec7893d
1 changed files with 0 additions and 8 deletions

View File

@ -101,14 +101,6 @@ void PhotoMedia::set(
QImage image,
QByteArray bytes) {
const auto index = PhotoSizeIndex(size);
const auto limit = PhotoData::SideLimit();
if (image.width() > limit || image.height() > limit) {
image = image.scaled(
limit,
limit,
Qt::KeepAspectRatio,
Qt::SmoothTransformation);
}
_images[index] = PhotoImage{
.data = std::make_unique<Image>(std::move(image)),
.bytes = std::move(bytes),