Browse Source

bump JPEG quality from 98->100 and add a comment

main
Colin McMillen 11 months ago
parent
commit
a326c8432e
  1. 3
      Program.cs

3
Program.cs

@ -222,6 +222,7 @@ public class Photo {
}
public void SaveAsJpeg(string outputRoot, JpegEncoder encoder) {
// FIXME: if nothing was changed about this image, just copy the file bytes directly, possibly with metadata changed?
string directory = System.IO.Path.Combine(
outputRoot,
String.Format("{0:D4}", DateTimeOriginal.Year),
@ -886,7 +887,7 @@ public class Game : GameWindow {
// To find the JPEG compression level of a file from the command line:
// $ identify -verbose image.jpg | grep Quality:
private void ExportPhotos() {
JpegEncoder encoder = new JpegEncoder() { Quality = 98 };
JpegEncoder encoder = new JpegEncoder() { Quality = 100 };
string outputRoot = @"c:\users\colin\desktop\totte-output";
foreach (Photo p in photos) {
p.SaveAsJpeg(outputRoot, encoder);

Loading…
Cancel
Save