From 534370377ec458a0cad6cb2be934a16631fad55a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B3n=20Zyrianov?= Date: Mon, 18 Mar 2024 12:43:39 +0100 Subject: [PATCH] fix gif support --- server/services/image-manipulation.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/services/image-manipulation.js b/server/services/image-manipulation.js index f013874..26e178a 100644 --- a/server/services/image-manipulation.js +++ b/server/services/image-manipulation.js @@ -41,7 +41,9 @@ const resizeFileTo = async ( ) => { const filePath = join(file.tmpWorkingDirectory, hash); - let sharpInstance = autoOrientation ? sharp().rotate() : sharp(); + let sharpInstance = autoOrientation + ? sharp({ animated: true }).rotate() + : sharp({ animated: true }); if (options.convertToFormat) { sharpInstance = sharpInstance.toFormat(options.convertToFormat);