Re: [PHP] Image copying

2005-01-07 Thread Liam Gibbs
Richard, thanks. This made it much clearer. I read this, then stepped away and thought about it later and it makes so much more sense. Basically, I guess I ended up with the result in my HTML. Man, I thought I was telling it to print the results of the resource ID, but it was printing it on its ow

Re: [PHP] Image copying

2005-01-06 Thread Richard Lynch
Liam Gibbs wrote: > print(" "\">"); > > So I'm calling the function straight from the SRC attribute of the IMG > tag. Here's what's in my function: > > function copy_pic($sourcepic) { >if(file_exists($sourcepic)) { > $destinationpic = imagecreatetruecolor(imagesx($sourcepic), > imagesy($s

Re: [PHP] Image copying

2005-01-06 Thread Jason Wong
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 d

[PHP] Image copying

2005-01-05 Thread Liam Gibbs
Hello, I'm having a real frustrating time with my problem here, which is to copy one JPEG to another resource. I'm not even sure where I'm going wrong, or how to find it out, because it seems that I'm getting all my resource IDs fine (when I echo them, I get 'resource ID #x'), and no error mess