Remove ffmpeg & heic-convert dependencies.
This commit is contained in:
@@ -8,7 +8,7 @@ import path from "path";
|
||||
import { logger } from "../server";
|
||||
import { AssetPaths, FolderPaths } from "./serverInit";
|
||||
const simpleThumb = require("simple-thumbnail");
|
||||
const ffmpeg = require("ffmpeg-static");
|
||||
//const ffmpeg = require("ffmpeg-static");
|
||||
|
||||
var Bluebird = require("bluebird");
|
||||
|
||||
@@ -43,7 +43,7 @@ export default async function GenerateThumbnail(
|
||||
await GeneratePdfThumbnail(file, thumbPath);
|
||||
} else if (type?.mime.startsWith("video")) {
|
||||
await simpleThumb(file, thumbPath, "250x?", {
|
||||
path: ffmpeg,
|
||||
// path: ffmpeg,
|
||||
});
|
||||
} else {
|
||||
logger.debug("Thumbnail being created for : " + thumbPath);
|
||||
@@ -97,7 +97,7 @@ export async function GenerateOptimized(
|
||||
await GeneratePdfThumbnail(file, thumbPath);
|
||||
} else if (type?.mime.startsWith("video")) {
|
||||
await simpleThumb(file, thumbPath, "250x?", {
|
||||
path: ffmpeg,
|
||||
// path: ffmpeg,
|
||||
});
|
||||
} else {
|
||||
logger.debug("Optimized image being created for : " + thumbPath);
|
||||
|
||||
Reference in New Issue
Block a user