From 946ae6ef40566c5509f46eb93249912dc0079d79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Markacz?= Date: Mon, 10 Mar 2025 11:55:10 +0100 Subject: [PATCH] Allow rotation transformation without angle argument --- source/image-handler/thumbor-mapper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/image-handler/thumbor-mapper.ts b/source/image-handler/thumbor-mapper.ts index 94858640c..cc4cb7278 100644 --- a/source/image-handler/thumbor-mapper.ts +++ b/source/image-handler/thumbor-mapper.ts @@ -343,7 +343,7 @@ export class ThumborMapper { break; } case "rotate": { - currentEdits.rotate = Number(filterValue); + currentEdits.rotate = filterValue === '' ? undefined : Number(filterValue); break; } case "sharpen": {