PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Fri Jul 20, 2018 11:00 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: mirror image with gd
PostPosted: Wed Jul 07, 2004 12:11 am 
Offline
Forum Contributor
User avatar

Joined: Sun Feb 29, 2004 7:49 pm
Posts: 412
Location: Salt Lake City, Utah
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?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 07, 2004 12:21 am 
Offline
DevNet Resident
User avatar

Joined: Thu Oct 16, 2003 5:49 pm
Posts: 1972
Location: Manchester (UK)
Shell out to ImageMagicks 'convert' utility? It has a nice -flip option to create a mirror image.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 07, 2004 12:24 am 
Offline
Forum Contributor
User avatar

Joined: Sun Feb 29, 2004 7:49 pm
Posts: 412
Location: Salt Lake City, Utah
Thanks, Mark, I'll look into that...
... so there isn't a better way to do that with gd?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 07, 2004 12:26 am 
Offline
DevNet Resident
User avatar

Joined: Thu Oct 16, 2003 5:49 pm
Posts: 1972
Location: Manchester (UK)
Not that i can think of, no.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group