Exif Helper

This commit is contained in:
2024-10-20 18:56:57 -07:00
parent 19326df4c6
commit 80ca8f98eb
29 changed files with 1287 additions and 10 deletions

View File

@ -136,6 +136,7 @@ public class Worker : BackgroundService
break;
}
}
string extension = Path.GetExtension(_Args[0]);
if (consoleKey is not ConsoleKey.End && !_ConsoleKeys.Contains(consoleKey))
consoleKey = ConsoleKey.End;
if (singleCharIndex is not null)
@ -233,6 +234,8 @@ public class Worker : BackgroundService
break;
}
}
else if (_AppSettings.ValidImageFormatExtensions.Contains(extension) && File.Exists(_Args[0]))
Helpers.Exif.HelperExif.DragAndDrop(_Logger, _Args[0]);
else
throw new Exception(_Args[0]);
}