From 6890a0939da006e53582c5accdbaf5ba0f7fa2f7 Mon Sep 17 00:00:00 2001 From: James Collins Date: Mon, 28 Aug 2023 14:29:47 +1000 Subject: [PATCH] fix rotate error --- app/Jobs/MediaJob.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Jobs/MediaJob.php b/app/Jobs/MediaJob.php index 968a65b..5eff596 100644 --- a/app/Jobs/MediaJob.php +++ b/app/Jobs/MediaJob.php @@ -196,7 +196,7 @@ class MediaJob implements ShouldQueue if (array_key_exists("rotate", $this->actions) === true) { $rotate = intval($this->actions["rotate"]); $rotate = (($rotate % 360 + 360) % 360); // remove excess rotations - $rotate = (round($rotate / 90) * 90); // round to nearest 90% + $rotate = intval(round($rotate / 90) * 90); // round to nearest 90% if ($rotate > 0) { if ($this->silent === false) {