I have an image that gets rotateY(-54deg)
on the front-end and I need to rotate it the same way on PHP using Imagick::distortImage
$image->distortImage(Imagick::DISTORTION_PERSPECTIVE, $controlPoints, true);
Is there an easy way to convert the -54deg
to the $controlPoints
that distortImage()
needs?