views:

606

answers:

2

Hi is it possible to transform an images perspective... so it's new shape is an isosceles trapezoid? I saw a solution using imagemagick, but that would involve possibly rewriting my entire image manipulation script... (not to mention learning, of which i'm allergic)

+2  A: 

GD does not support 3D image manipulations :( The solution using ImageMagick is not complex: http://valokuva.org/?p=112

FractalizeR
+1  A: 

I wrote a little function to do this with just PHP and the GD library.

Set Perspective of image using PHP GD

James
Thanks, i do like it. But if you get a chance to revist you need to add a geometric change in the x axis to make the perspective look less like you've just squished the corners down.
Drew