On Monday 24 June 2002 18:57, Phil Ewington wrote: > Hi, > > I am trying to copy and resize an image using imagecopyresized() and > cannot seem to crack it. Below is the code I am using, can anyone tell > me why I keep getting and invalid image resource warning and is this > the src or dest parameter that the error is referring to?
Both. > $srcImageName = "../properties/$line[propid].jpg"; > $destImageName = $rm_branchref . "_" . $line[propid] . ".jpg"; > $destImage = imagecreate(275, 183); > imagecopyresized($destImage, $srcImageName, 0, 0, 0, 0, 275, 183, int imagecopyresized (resource dst_im, resource src_im, ...) You're giving it a filename and not an image resource. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Arguments are extremely vulgar, for everyone in good society holds exactly the same opinion. -- Oscar Wilde */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php