I searched everywhere to try to find a function to distort the image using php using the GD library. I read the topics where ImageMagick was suggested, but I unfortunately do not have access to this library on my server, so I have to use GD. I am looking for something where I can specify the source image and destination image, and then 4 sets of X and Y coordinates for each corner of the image. So something like this would be ideal:
bool skewImage(resource $src_im, resource $dst_im, int $x1, int $y1, int $x2, int $y2, int $x3, int $y3, int $x4, int $y4)
If anyone knows or knows any feature like this or similar that would be awesome, thanks!
source share