From dff3cb6cc684c73f32ce87c4d5b7762dfb9c5457 Mon Sep 17 00:00:00 2001 From: Lucurious Date: Mon, 18 Dec 2023 19:46:27 +0100 Subject: [PATCH] Update intermediate hash Signed-off-by: Lucurious --- server/services/image-optimizer-service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/services/image-optimizer-service.ts b/server/services/image-optimizer-service.ts index 99f4eef..fd4e886 100644 --- a/server/services/image-optimizer-service.ts +++ b/server/services/image-optimizer-service.ts @@ -99,7 +99,7 @@ async function resizeFileTo( sourceFile ); - const imageHash = `${sizeName}_${sourceFile.hash}`; + const imageHash = `${sizeName}_${format}_${sourceFile.hash}`; const filePath = join(sourceFile.tmpWorkingDirectory, imageHash); const newImageStream = sourceFile.getStream().pipe(sharpInstance); await writeStreamToFile(newImageStream, filePath);