View Single Post
Old 06-07-2007, 05:20 PM  
ASACP Cal
Registered User
 
Join Date: Jun 2007
Location: Vancouver, BC
Posts: 6
minor correction

it should read imagejpeg($newimg) at the end of the code snippet.

to write to a file remove the header("content-type: image/jpeg");
and change imagejpeg($newimg) to imagejpeg($newimg,"some/image/path");

you'd want to do any other transformations after the imagecopyresampled function.
ASACP Cal is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook