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

This commit is contained in:
Colin McMillen 2023-07-28 16:00:08 -04:00
parent 073c9745e9
commit a326c8432e

View File

@ -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);