Skip to content

Commit

Permalink
Merge pull request #222 from nischay876/patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Moore committed Jul 11, 2023
2 parents 80c6191 + a4e5801 commit b0e1f0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/thumbnails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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=${THUMBNAIL.WIDTH}:${THUMBNAIL.HEIGHT}`, // 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
]);
}
Expand Down

0 comments on commit b0e1f0c

Please sign in to comment.