Page 1 of 1

GD Image resize

Posted: Sat Apr 21, 2007 1:17 pm
by nwp
How can I change the height of an image runtime using GD.
e.g. I dont wanna change the image on file. I wanna change the image from a image resource thats created from imagecreate() GD.

Posted: Sat Apr 21, 2007 1:34 pm
by John Cartwright
Exactly how you would if you were going to save the file (I assume you know how to do this already), except you'll be using readfile() to output the file to the output buffer.

Posted: Sat Apr 21, 2007 1:36 pm
by nwp
No I wanna output that file in a php script.

Posted: Sat Apr 21, 2007 3:25 pm
by John Cartwright
Ya I know