Fix: thumbnail creation
This commit is contained in:
parent
047a6afce6
commit
493e05df27
|
@ -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, () => {
|
||||
|
|
|
@ -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`
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue