|
|
@ -232,7 +232,6 @@ public class Photo { |
|
|
|
Directory.CreateDirectory(directory); |
|
|
|
string filename = System.IO.Path.Combine(directory, System.IO.Path.GetFileName(Filename)); |
|
|
|
Console.WriteLine("saving " + filename); |
|
|
|
// FIXME: what if we also saved Exif rating?
|
|
|
|
// FIXME: add comments / captions as ImageDescription?
|
|
|
|
// FIXME: strip some Exif tags for privacy reasons?
|
|
|
|
// FIXME: warn if the file already exists?
|
|
|
@ -244,6 +243,7 @@ public class Photo { |
|
|
|
exif.SetValue<string>(ExifTag.Artist, "Colin McMillen"); |
|
|
|
exif.SetValue<string>(ExifTag.Copyright, "Colin McMillen"); |
|
|
|
exif.SetValue<string>(ExifTag.Software, "Totte"); |
|
|
|
exif.SetValue<ushort>(ExifTag.Rating, (ushort) Rating); |
|
|
|
DateTime now = DateTime.Now; |
|
|
|
string datetime = String.Format( |
|
|
|
"{0:D4}:{1:D2}:{2:D2} {3:D2}:{4:D2}:{5:D2}", |
|
|
|