On Thursday 06 January 2005 14:24, Liam Gibbs wrote: > What I'm trying to do is copy one JPEG to another JPEG (as mentioned) on > the fly. I don't want to have a new file produced, just a modified JPEG (a > few circles here and there) held in a resource. Here's how I call my > function and how I display the image via HTML: > > print("<IMG ALT... HEIGHT... WIDTH... SRC = \"" . copy_pic($sourcepic) . > "\">"); > > So I'm calling the function straight from the SRC attribute of the IMG tag. SRC is supposed to be a URL ... > Here's what's in my function: > > function copy_pic($sourcepic) { > if(file_exists($sourcepic)) { > $destinationpic = imagecreatetruecolor(imagesx($sourcepic), > imagesy($sourcepic)); imagecopy($destinationpic, $sourcepic, 0, 0, 0, 0, > imagesx($sourcepic), imagesy($sourcepic)); } > > return $destinationpic; > } ... but you're giving it an image resource! -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ New Year Resolution: Ignore top posted posts -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php