From a326c8432e787a4285a5645a68e40f26367ad2c4 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Fri, 28 Jul 2023 16:00:08 -0400 Subject: [PATCH] bump JPEG quality from 98->100 and add a comment --- Program.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Program.cs b/Program.cs index 2fc8b55..57e8702 100644 --- a/Program.cs +++ b/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);