blah
This commit is contained in:
parent
d17032da30
commit
1ab84c48f6
BIN
s/f0ck.png
Normal file
BIN
s/f0ck.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 21 KiB |
|
@ -108,7 +108,10 @@ self.generateThumbs = () => {
|
|||
exec('ffmpegthumbnailer -i'+e.dest+' -s1024 -o'+thumbnail, (error) => {
|
||||
if(error) {
|
||||
self.log('failed thumbnail for '+e.id+' ('+e.mime+')');
|
||||
fs.copySync('./s/mp3.png', thumbnail); // copy standardthumbnail
|
||||
if(e.mime.match(/audio/i))
|
||||
fs.copySync('./s/mp3.png', thumbnail); // copy standardthumbnail
|
||||
else
|
||||
fs.copySync('./s/f0ck.png', thumbnail);
|
||||
}
|
||||
else
|
||||
exec('convert '+thumbnail+' -resize "128x128^" -gravity center -crop 128x128+0+0 +repage '+thumbnail, (error) => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user