fix thumbnailing animated webp
This commit is contained in:
parent
f39a136d5d
commit
8d32dfef24
@ -62,7 +62,7 @@ export default new class queue {
|
||||
if(mime.startsWith('video/') || mime == 'image/gif')
|
||||
await this.exec(`ffmpegthumbnailer -i./public/b/${filename} -s1024 -o./tmp/${itemid}.png`);
|
||||
else if(mime.startsWith('image/') && mime != 'image/gif')
|
||||
await this.exec(`convert ./public/b/${filename} ./tmp/${itemid}.png`);
|
||||
await this.exec(`convert "./public/b/${filename}[0]" ./tmp/${itemid}.png`);
|
||||
else if(mime.startsWith('audio/')) {
|
||||
if(link.match(/soundcloud/)) {
|
||||
let cover = (await this.exec(`yt-dlp -f 'bv*[height<=720]+ba/b[height<=720] / wv*+ba/w' --get-thumbnail "${link}"`)).stdout.trim();
|
||||
|
Loading…
Reference in New Issue
Block a user