PHP - Rotate image on reference point
问题 I am wondering if it is possible to rotate an image using a reference point. For example, rotating this image by 30 degrees: instead of having: I would like to have: which means rotating the image on the bottom-left point. I would do this overlapping the rectangle to the original image if needed, and rotating it as needed only after. 回答1: The ImageMagick extension can do this, using the DISTORTION_SCALEROTATETRANSLATE option. You might need to tweak the coordinates and angle a bit to fit your