Page 1 of 1
mirror image with gd
Posted: Wed Jul 07, 2004 12:11 am
by andre_c
The only way I have found to mirror an image with gd is to copy each row of pixels into a new image in reverse order using a for loop.
Can anyone think of a better way?
Posted: Wed Jul 07, 2004 12:21 am
by markl999
Shell out to ImageMagicks 'convert' utility? It has a nice -flip option to create a mirror image.
Posted: Wed Jul 07, 2004 12:24 am
by andre_c
Thanks, Mark, I'll look into that...
... so there isn't a better way to do that with gd?
Posted: Wed Jul 07, 2004 12:26 am
by markl999
Not that i can think of, no.