Perspective transformation with GD
问题 How can I apply a perspective transformation on an image using only the PHP GD library? I don't want to use a function someone else made I want to UNDERSTAND what's going on 回答1: I honestly don't know how to describe mathematically a perspective distortion. You could try searching the literature for that (e.g. Google Scholar). See also in the OpenGL documentation, glFrustum. EDIT : Interestingly, starting with version 8, Mathematica has a ImagePerspectiveTransformation. In the relevant part,