From 4d20be6441c85b703651f33053d8d80046ebb1bd Mon Sep 17 00:00:00 2001 From: Anddrrew <59182007+Anddrrew@users.noreply.github.com> Date: Wed, 4 Dec 2024 22:35:50 +0200 Subject: [PATCH] fix(on-fly-resize): Added rotate to handle EXIF --- packages/asset-server-plugin/src/transform-image.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/asset-server-plugin/src/transform-image.ts b/packages/asset-server-plugin/src/transform-image.ts index 623bcd3878..9297bebf0a 100644 --- a/packages/asset-server-plugin/src/transform-image.ts +++ b/packages/asset-server-plugin/src/transform-image.ts @@ -39,7 +39,7 @@ export async function transformImage( options.fit = 'inside'; } - const image = sharp(originalImage); + const image = sharp(originalImage).rotate(); try { await applyFormat(image, imageFormat, quality); } catch (e: any) {