View Full Version : GD Image Flip

02-29-2004, 02:36 PM
Wow, I've been asking a few questions about GD lately. Here's my newest one ...

I have an image, and I want to flip it horizontally/vertically. I've looked on PHP.NET and I couldn't find anything that does it. Without having to write a function that goes through every pixel on a picture and inverting it, is there a function that does it with GD/PHP?


02-29-2004, 04:41 PM
I think you are going beyond the limits/scope of GD

see if you have imagemagick (http://www.imagemagick.org) available on your server which has geometry functions and filters you can apply, you can either exec() imagemagick commands or there is a PECL extension available though its unlikely to be installed on most servers