From 46b043f3eecd22140efd369dec3806cc3deec9a5 Mon Sep 17 00:00:00 2001 From: Nischay Sharma Date: Tue, 11 Jul 2023 10:16:02 +0530 Subject: [PATCH 1/3] Update thumbnails.ts Thumbnail from center of images instead of stretching it --- src/thumbnails.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thumbnails.ts b/src/thumbnails.ts index f63ff93..66d9769 100644 --- a/src/thumbnails.ts +++ b/src/thumbnails.ts @@ -26,8 +26,8 @@ function getCommand(src: String, dest: String) { '-v', (isProd ? 'error' : 'debug'), // Log level '-i', src, // Input file '-ss', '00:00:01.000', // Timestamp of frame to grab + '-vf', `scale=${THUMBNAIL.WIDTH}:${THUMBNAIL.HEIGHT}:force_original_aspect_ratio=increase,crop=${targetWidth}:${targetHeight}`, // Dimensions of output file '-frames:v', '1', // Number of frames to grab - '-s', `${THUMBNAIL.WIDTH}x${THUMBNAIL.HEIGHT}`, // Dimensions of output file dest // Output file ]); } From a4e58016ad17b7ac297922043485f5aca8a1b030 Mon Sep 17 00:00:00 2001 From: Nischay Sharma Date: Tue, 11 Jul 2023 10:20:17 +0530 Subject: [PATCH 2/3] Update thumbnails.ts --- src/thumbnails.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thumbnails.ts b/src/thumbnails.ts index 66d9769..0642279 100644 --- a/src/thumbnails.ts +++ b/src/thumbnails.ts @@ -26,7 +26,7 @@ function getCommand(src: String, dest: String) { '-v', (isProd ? 'error' : 'debug'), // Log level '-i', src, // Input file '-ss', '00:00:01.000', // Timestamp of frame to grab - '-vf', `scale=${THUMBNAIL.WIDTH}:${THUMBNAIL.HEIGHT}:force_original_aspect_ratio=increase,crop=${targetWidth}:${targetHeight}`, // Dimensions of output file + '-vf', `scale=${THUMBNAIL.WIDTH}:${THUMBNAIL.HEIGHT}:force_original_aspect_ratio=increase,crop=${THUMBNAIL.WIDTH}:${THUMBNAIL.HEIGHT}`, // Dimensions of output file '-frames:v', '1', // Number of frames to grab dest // Output file ]); From 946790cfa2b6050a9674e45eb01ac7d523ed99d5 Mon Sep 17 00:00:00 2001 From: Josh Moore Date: Fri, 4 Aug 2023 12:25:28 -0600 Subject: [PATCH 3/3] docs/fix: Win uses \ --- .github/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/README.md b/.github/README.md index b764e00..d805251 100644 --- a/.github/README.md +++ b/.github/README.md @@ -124,7 +124,7 @@ ass supports two installation methods: Docker (recommended) & local (manual). 1. Clone the ass repo using `git clone https://github.com/tycrek/ass.git && cd ass/` 2. Run the command that corresponds to your OS: - **Linux**: `./install/docker-linux.sh` (uses `#!/bin/bash`) - - **Windows**: `install/docker-windows.bat` (from Command Prompt) + - **Windows**: `install\docker-windows.bat` (from Command Prompt) - These scripts are identical using the equivalent commands in each OS. 3. Work through the setup process when prompted.