You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Adding upscaling for crop effect + resize property - so cropping into higher resolution content does not become blurry.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user