output to the "prod" photos location. also make sure there's at least one thumbnail in the ribbon
This commit is contained in:
parent
ac93b55609
commit
c68f42915c
@ -474,7 +474,7 @@ public class UiGeometry {
|
|||||||
public UiGeometry(Vector2i windowSize, int starSize) {
|
public UiGeometry(Vector2i windowSize, int starSize) {
|
||||||
WindowSize = windowSize;
|
WindowSize = windowSize;
|
||||||
|
|
||||||
int numThumbnails = WindowSize.Y / 100;
|
int numThumbnails = Math.Max(WindowSize.Y / 100, 1);
|
||||||
int thumbnailHeight = WindowSize.Y / numThumbnails;
|
int thumbnailHeight = WindowSize.Y / numThumbnails;
|
||||||
int thumbnailWidth = (int) 1.0 * thumbnailHeight * activeCamera.Resolution.X / activeCamera.Resolution.Y;
|
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.
|
// FIXME: show a progress bar or something.
|
||||||
private async void ExportPhotos() {
|
private async void ExportPhotos() {
|
||||||
JpegEncoder encoder = new JpegEncoder() { Quality = 100 };
|
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) {
|
foreach (Photo p in photos) {
|
||||||
await Task.Run( () => { p.SaveAsJpeg(outputRoot, encoder); });
|
await Task.Run( () => { p.SaveAsJpeg(outputRoot, encoder); });
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user