Fix: thumbnail creation

This commit is contained in:
Pitu 2020-12-25 03:08:53 +09:00
parent 047a6afce6
commit 493e05df27
2 changed files with 2 additions and 1 deletions

View File

@ -92,6 +92,7 @@ class Server {
start() {
jetpack.dir('uploads/chunks');
jetpack.dir('uploads/thumbs/square');
jetpack.dir('uploads/thumbs/preview');
this.registerAllTheRoutes();
this.serveNuxt();
const server = this.server.listen(this.port, () => {

View File

@ -83,7 +83,7 @@ class ThumbUtil {
if (isImage) return { thumb: `${filename.slice(0, -ext.length)}.webp` };
if (isVideo) {
return {
thumb: `${filename.slice(0, -ext.length)}.png`,
thumb: `${filename.slice(0, -ext.length)}.webp`,
preview: `${filename.slice(0, -ext.length)}.webm`
};
}