From 8ea2782038f631860024e15c3f1825d1765596b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Sun, 19 Sep 2021 11:52:47 +0200 Subject: [PATCH] remove clamping down files, improve logging --- cli/main.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/cli/main.ts b/cli/main.ts index edfd1aa..e2ffe41 100644 --- a/cli/main.ts +++ b/cli/main.ts @@ -57,11 +57,6 @@ if (files.size < 2) { const shuffledFiles = shuffle(Array.from(files)); -if (shuffledFiles.length > 25) { - console.debug(`Too many files available, shuffling and clamping to 25...`); - shuffledFiles.splice(25, shuffledFiles.length - 25); -} - const images: ProxyImage[] = shuffledFiles.map((file) => new ProxyImage(file)); const modes = new DenoCollageModes(); @@ -70,9 +65,9 @@ const modeKey: CollageModeType = args["mode"] || choice(collageModeType); const mode = modes.modes[modeKey]; console.log( - `Creating a "${mode.name}" collage...`, + `Creating a "${mode.name}" collage, choosing from ${shuffledFiles.length} files...`, ); -console.debug(`Images: ${shuffledFiles.join(", ")}`); +// console.debug(`Images: ${shuffledFiles.join(", ")}`); const canvas = createCanvas(args["width"] || 640, args["height"] || 640); const context = canvas.getContext("2d");