|
|
@ -12,7 +12,7 @@ module.exports = (file, geometry) => { |
|
|
|
.screenshots({ |
|
|
|
.screenshots({ |
|
|
|
timestamps: ['1%'],//1% should remedy black first frames or fade-ins
|
|
|
|
timestamps: ['1%'],//1% should remedy black first frames or fade-ins
|
|
|
|
count: 1, |
|
|
|
count: 1, |
|
|
|
filename: `thumb-${file.hash}${thumbExtension}`, |
|
|
|
filename: `thumb-${file.hash}${file.thumbextension}`, |
|
|
|
folder: `${uploadDirectory}/img/`, |
|
|
|
folder: `${uploadDirectory}/img/`, |
|
|
|
size: geometry.width > geometry.height ? '128x?' : '?x128' |
|
|
|
size: geometry.width > geometry.height ? '128x?' : '?x128' |
|
|
|
//keep aspect ratio, but also making sure taller/wider thumbs dont exceed 128 in either dimension
|
|
|
|
//keep aspect ratio, but also making sure taller/wider thumbs dont exceed 128 in either dimension
|
|
|
|