From 080ed8e335ef4d27340f4d8b0976925b7ebf546e Mon Sep 17 00:00:00 2001 From: Allan Carr Date: Thu, 24 Jul 2025 13:11:09 -0700 Subject: [PATCH] Correct HeicConversion --- util/heicConverter.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/util/heicConverter.ts b/util/heicConverter.ts index e846a3e..295a161 100644 --- a/util/heicConverter.ts +++ b/util/heicConverter.ts @@ -13,6 +13,8 @@ dotenv.config({ path: path.resolve(process.cwd(), `.env.${process.env.NODE_ENV || "development"}`) }); +const imageMagick = gm.subClass({ imageMagick: true }); + const QUEUE_NAME = "heicQueue"; const connectionOpts = { @@ -109,12 +111,12 @@ async function convertToJpeg(inputPath: string, outputPath: string): Promise { - logger.warning(`GraphicsMagick conversion error for ${inputPath}:`, err); - reject(new Error(`GraphicsMagick conversion failed: ${err.message}`)); + logger.warning(`ImageMagick conversion error for ${inputPath}:`, err); + reject(new Error(`ImageMagick conversion failed: ${err.message}`)); }) .pipe(writeStream) .on("finish", () => resolve(outputPath))