output to the "prod" photos location. also make sure there's at least one thumbnail in the ribbon

This commit is contained in:
Colin McMillen 2023-07-31 16:44:01 -04:00
parent ac93b55609
commit c68f42915c

View File

@ -474,7 +474,7 @@ public class UiGeometry {
public UiGeometry(Vector2i windowSize, int starSize) {
WindowSize = windowSize;
int numThumbnails = WindowSize.Y / 100;
int numThumbnails = Math.Max(WindowSize.Y / 100, 1);
int thumbnailHeight = WindowSize.Y / numThumbnails;
int thumbnailWidth = (int) 1.0 * thumbnailHeight * activeCamera.Resolution.X / activeCamera.Resolution.Y;
@ -912,7 +912,7 @@ public class Game : GameWindow {
// FIXME: show a progress bar or something.
private async void ExportPhotos() {
JpegEncoder encoder = new JpegEncoder() { Quality = 100 };
string outputRoot = @"c:\users\colin\desktop\totte-output";
string outputRoot = @"c:\users\colin\pictures\photos\";
foreach (Photo p in photos) {
await Task.Run( () => { p.SaveAsJpeg(outputRoot, encoder); });
}