From 2ded62f77d23a14f86802270204bce372892cff0 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sat, 30 Nov 2024 02:04:05 +0100 Subject: [PATCH] Fix video thumbnails for small videos --- src/timeline/InputBar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timeline/InputBar.cpp b/src/timeline/InputBar.cpp index 270e261e..e33c9711 100644 --- a/src/timeline/InputBar.cpp +++ b/src/timeline/InputBar.cpp @@ -1182,7 +1182,7 @@ MediaUpload::startUpload() QBuffer buffer(&ba); buffer.open(QIODevice::WriteOnly); thumbnail_.save(&buffer, "PNG", 0); - if (ba.size() >= (data.size() - data.size() / 10)) { + if (type() == MediaType::Image && ba.size() >= (data.size() - data.size() / 10)) { nhlog::ui()->info( "Thumbnail is not a lot smaller than original image, not uploading it"); nhlog::ui()->debug(