Scale HEIC by 50%

This commit is contained in:
2026-01-02 12:12:39 +09:00
parent eccaa9eeef
commit c4e764fbb9
+1
View File
@@ -129,6 +129,7 @@ class MainViewModel : BaseViewModel, IFontResolver
// Save frame as jpg // Save frame as jpg
var outputPath = Path.Combine(convertedDir, info.Name + ".jpg"); var outputPath = Path.Combine(convertedDir, info.Name + ".jpg");
mImage.Quality = 80; mImage.Quality = 80;
mImage.Scale((uint)Math.Floor(mImage.Width * 0.5), (uint)Math.Floor(mImage.Height * 0.5));
mImage.Write(outputPath); mImage.Write(outputPath);
fileName = Path.Combine("Converted", info.Name + ".jpg"); fileName = Path.Combine("Converted", info.Name + ".jpg");
Console.WriteLine("HEIC image fileName is now {0}", fileName); Console.WriteLine("HEIC image fileName is now {0}", fileName);