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) => {
|
exec('ffmpegthumbnailer -i'+e.dest+' -s1024 -o'+thumbnail, (error) => {
|
||||||
if(error) {
|
if(error) {
|
||||||
self.log('failed thumbnail for '+e.id+' ('+e.mime+')');
|
self.log('failed thumbnail for '+e.id+' ('+e.mime+')');
|
||||||
|
if(e.mime.match(/audio/i))
|
||||||
fs.copySync('./s/mp3.png', thumbnail); // copy standardthumbnail
|
fs.copySync('./s/mp3.png', thumbnail); // copy standardthumbnail
|
||||||
|
else
|
||||||
|
fs.copySync('./s/f0ck.png', thumbnail);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
exec('convert '+thumbnail+' -resize "128x128^" -gravity center -crop 128x128+0+0 +repage '+thumbnail, (error) => {
|
exec('convert '+thumbnail+' -resize "128x128^" -gravity center -crop 128x128+0+0 +repage '+thumbnail, (error) => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user