add fixme re photo export GPS
This commit is contained in:
parent
c053672108
commit
44752c5567
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user