rotate an image ?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Anyone know a function that could rotate a .jpg image 90 degree to the right  
or left ?


Re: rotate an image ?

Yannick Benoit said the following on 25/02/2006 02:17:
Quoted text here. Click to load it

Yes.  You can find it too by looking at the Image Functions section in  
the PHP manual.


Re: rotate an image ?

<Fri, 24 Feb 2006 21:17:30 -0500>

Quoted text here. Click to load it

Some old code that decides at random to rotate left or right .

$zz=(rand()%6)+2; $xx=(rand()%2); $source=imagecreatefromjpeg($hold2);
if ($xx==0)
if ($xx==1)
ImageJPEG($thumb,$hold2); imagedestroy($source); imagedestroy($thumb);

Change the $zz to 90 or whatever .

Site Timeline