Downsize MB is now user-configurable

Probably doesn't matter most of the time since we resize down HEIC and PNG anyway...

Closes #7
This commit is contained in:
2026-03-03 09:39:09 +09:00
parent 03da58277e
commit 3e91edb457
4 changed files with 35 additions and 2 deletions
+1 -1
View File
@@ -706,7 +706,7 @@ class MainViewModel : BaseViewModel, IFontResolver, ICanCheckShutdown
didAdjust = true;
}
// perform needed image manipulations
if (isHEIC || isWebp || isPNG || (!isPDF && info.Length > 1.5 * 1024 * 1024 /* 1.5 MB */))
if (isHEIC || isWebp || isPNG || (!isPDF && info.Length > _settings.ImageResizeThreshold * 1024 * 1024))
{
// Save image as jpg
mImage.Quality = 80;