Page 1 of 1

Image Resize & Rotation

Posted: Tue Mar 04, 2008 10:58 am
by infoseeker
Hi

I have 2 scripts, one for Image rotation and other image resize and they both are working.

Image resize scripts load the picture and resize it to "Thumbnail" and Image rotation rotate the image by 90 deg. They are two differennt files i.e. resize.php and rotate.php.

What I want to do is to combine both rotate.php & resize.php, so when the scripts resize the image than it calls rotate script to rotate the image and display it on the screen.. I hope I am making sence.. I am finding hard to explain.. If u dont understand anything please let me know..

thanks
Zee

Re: Image Resize & Rotation

Posted: Tue Mar 04, 2008 2:10 pm
by pickle
Put the logic from rotate.php into resize.php. I imagine you send the filename to both scripts & let them do their magic. Have this master file open the image & resize it - but rather than write the file back to disk, just hold onto the image resource & let the rotate stuff do it's thing. You can then take out the logic from resize.php that opens the file.

Re: Image Resize & Rotation

Posted: Wed Mar 05, 2008 3:52 am
by infoseeker
Thanks I ll give it a go