fix rotate error

This commit is contained in:
2023-08-28 14:29:47 +10:00
parent 61c78534d8
commit 6890a0939d

View File

@@ -196,7 +196,7 @@ class MediaJob implements ShouldQueue
if (array_key_exists("rotate", $this->actions) === true) { if (array_key_exists("rotate", $this->actions) === true) {
$rotate = intval($this->actions["rotate"]); $rotate = intval($this->actions["rotate"]);
$rotate = (($rotate % 360 + 360) % 360); // remove excess rotations $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 ($rotate > 0) {
if ($this->silent === false) { if ($this->silent === false) {