From 44752c5567ddf39e09b1c4083534f0e722449e7c Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Wed, 23 Aug 2023 02:30:01 -0400 Subject: [PATCH] add fixme re photo export GPS --- Program.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Program.cs b/Program.cs index 157a2dd..b9ebbda 100644 --- a/Program.cs +++ b/Program.cs @@ -632,7 +632,7 @@ public class Game : GameWindow { false, 5 * sizeof(float), 3 * sizeof(float)); // Load photos from a directory. - string[] files = Directory.GetFiles(@"c:\users\colin\desktop\photos-test\"); + // string[] files = Directory.GetFiles(@"c:\users\colin\desktop\photos-test\"); // string[] files = Directory.GetFiles(@"c:\users\colin\pictures\photos\2023\07\14\"); // string[] files = Directory.GetFiles(@"c:\users\colin\pictures\photos\2023\07\23\"); // string[] files = Directory.GetFiles(@"G:\DCIM\100EOSR6\"); @@ -640,7 +640,7 @@ public class Game : GameWindow { // string[] files = Directory.GetFiles(@"c:\users\colin\desktop\import"); // string[] files = Directory.GetFiles(@"C:\Users\colin\Pictures\photos\2018\06\23"); // string[] files = Directory.GetFiles(@"C:\Users\colin\Desktop\Germany all\104D7000"); - // string[] files = Directory.GetFiles(@"C:\Users\colin\Desktop\many-birds\"); + string[] files = Directory.GetFiles(@"C:\Users\colin\Desktop\many-birds\"); for (int i = 0; i < files.Count(); i++) { string file = files[i]; @@ -724,6 +724,8 @@ public class Game : GameWindow { // $ identify -verbose image.jpg | grep Quality: // FIXME: don't ExportPhotos() if another export is already active. // FIXME: show a progress bar or something. + // FIXME: if there's a photo missing GPS information, copy the information + // from the previous photo in the export. private async void ExportPhotos() { JpegEncoder encoder = new JpegEncoder() { Quality = 100 }; foreach (Photo p in photos) { @@ -989,7 +991,7 @@ static class Program { nwSettings.Size = new Vector2i(1600, 900); nwSettings.MinimumSize = UiGeometry.MIN_WINDOW_SIZE; nwSettings.Title = "Totte"; - nwSettings.IsEventDriven = false; + nwSettings.IsEventDriven = true; nwSettings.Icon = new WindowIcon(Util.RenderAppIcon()); using (Game game = new(gwSettings, nwSettings)) {