Adding upscaling for crop effect + resize property - so cropping into higher resolution content does not become blurry.

This commit is contained in:
Jonathan Thomas
2025-12-15 23:34:48 -06:00
parent bd59e6bb37
commit 2a82bed607
6 changed files with 132 additions and 1 deletions

View File

@@ -16,7 +16,9 @@
#include "CacheMemory.h"
#include "Exceptions.h"
#include "Timeline.h"
#include "effects/CropHelpers.h"
#include <algorithm>
#include <QString>
#include <QImage>
#include <QPainter>
@@ -244,6 +246,9 @@ QSize QtImageReader::calculate_max_size() {
max_width = info.width * max_scale_x * preview_ratio;
max_height = info.height * max_scale_y * preview_ratio;
}
// If a crop effect is resizing the image, request enough pixels to preserve detail
ApplyCropResizeScale(parent, info.width, info.height, max_width, max_height);
}
// Return new QSize of the current max size