Downsize if > 1.5 MB

This commit is contained in:
2026-02-25 07:50:28 +09:00
parent b42da7603b
commit f32568c918
+1 -1
View File
@@ -680,7 +680,7 @@ class MainViewModel : BaseViewModel, IFontResolver, ICanCheckShutdown
didAdjust = true;
}
// perform needed image manipulations
if (isHEIC || isWebp || isPNG || (!isPDF && info.Length > 2.5 * 1024 * 1024 /* 2.5 MB */))
if (isHEIC || isWebp || isPNG || (!isPDF && info.Length > 1.5 * 1024 * 1024 /* 2.5 MB */))
{
// Save image as jpg
loadedImageWidth = mImage.Width;