add Rating to EXIF as well just in case that matters somehow
This commit is contained in:
parent
58a19d061d
commit
9cdef230f4
@ -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}",
|
||||
|
Loading…
Reference in New Issue
Block a user