Skip to content

Commit

Permalink
Correct method name
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed May 11, 2024
1 parent 5947dac commit 7a07db6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Drivers/Imagick/Modifiers/AlignRotationModifier.php
Expand Up @@ -19,30 +19,30 @@ public function apply(ImageInterface $image): ImageInterface
break;

case Imagick::ORIENTATION_BOTTOMRIGHT: // 3
$image->core()->native()->rotateimage("#000", 180);
$image->core()->native()->rotateImage("#000", 180);
break;

case Imagick::ORIENTATION_BOTTOMLEFT: // 4
$image->core()->native()->rotateimage("#000", 180);
$image->core()->native()->rotateImage("#000", 180);
$image->core()->native()->flopImage();
break;

case Imagick::ORIENTATION_LEFTTOP: // 5
$image->core()->native()->rotateimage("#000", -270);
$image->core()->native()->rotateImage("#000", -270);
$image->core()->native()->flopImage();
break;

case Imagick::ORIENTATION_RIGHTTOP: // 6
$image->core()->native()->rotateimage("#000", -270);
$image->core()->native()->rotateImage("#000", -270);
break;

case Imagick::ORIENTATION_RIGHTBOTTOM: // 7
$image->core()->native()->rotateimage("#000", -90);
$image->core()->native()->rotateImage("#000", -90);
$image->core()->native()->flopImage();
break;

case Imagick::ORIENTATION_LEFTBOTTOM: // 8
$image->core()->native()->rotateimage("#000", -90);
$image->core()->native()->rotateImage("#000", -90);
break;
}

Expand Down

0 comments on commit 7a07db6

Please sign in to comment.