From c68f42915c3314e0a21ac23543431d8d1bcb09f0 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Mon, 31 Jul 2023 16:44:01 -0400 Subject: [PATCH] output to the "prod" photos location. also make sure there's at least one thumbnail in the ribbon --- Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Program.cs b/Program.cs index ad3e86f..4fc2eb3 100644 --- a/Program.cs +++ b/Program.cs @@ -474,7 +474,7 @@ public class UiGeometry { public UiGeometry(Vector2i windowSize, int starSize) { WindowSize = windowSize; - int numThumbnails = WindowSize.Y / 100; + int numThumbnails = Math.Max(WindowSize.Y / 100, 1); int thumbnailHeight = WindowSize.Y / numThumbnails; int thumbnailWidth = (int) 1.0 * thumbnailHeight * activeCamera.Resolution.X / activeCamera.Resolution.Y; @@ -912,7 +912,7 @@ public class Game : GameWindow { // FIXME: show a progress bar or something. private async void ExportPhotos() { JpegEncoder encoder = new JpegEncoder() { Quality = 100 }; - string outputRoot = @"c:\users\colin\desktop\totte-output"; + string outputRoot = @"c:\users\colin\pictures\photos\"; foreach (Photo p in photos) { await Task.Run( () => { p.SaveAsJpeg(outputRoot, encoder); }); }