Re: imagecopyresized() problems

From: Date: Mon, 24 Jun 2002 15:06:52 +0000
Subject: Re: imagecopyresized() problems
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-103604@lists.php.net to get a copy of this message
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 */

« previous php.general (#103604) next »