From 851772398cdb58846f2daaf8b33ff512d73f7c56 Mon Sep 17 00:00:00 2001 From: Michael Babienco Date: Wed, 25 Feb 2026 07:37:11 +0900 Subject: [PATCH] If file > 2.5 MB reduce size --- src/ViewModels/MainViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ViewModels/MainViewModel.cs b/src/ViewModels/MainViewModel.cs index f03be1b..c22846d 100644 --- a/src/ViewModels/MainViewModel.cs +++ b/src/ViewModels/MainViewModel.cs @@ -661,7 +661,7 @@ class MainViewModel : BaseViewModel, IFontResolver, ICanCheckShutdown var info = new FileInfo(file.FilePath); uint loadedImageWidth = 0; uint loadedImageHeight = 0; - if (isHEIC || isWebp || isPNG) + if (isHEIC || isWebp || isPNG || (!isPDF && info.Length > 2.5 * 1024 * 1024 /* 2.5 MB */)) { // Save image as jpg var convertedDir = Path.Combine(folderPath, "converted");