Remove ffmpeg & heic-convert dependencies.

This commit is contained in:
Patrick Fic
2022-11-16 16:10:01 -08:00
parent 32beabccb5
commit 6d0eb32a71
6 changed files with 58 additions and 180 deletions

View File

@@ -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);