imagecopy() no errors, but does nothing :-(
| From: | Evan | Date: | Mon, 20 May 2002 20:28:00 +0000 |
| Subject: | imagecopy() no errors, but does nothing :-( | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-98514@lists.php.net to get a copy of this message | ||
What I'm planning to do is to add the logo of the site over every image
uploaded.
Here is the code after upload:
$dst_im = @ImageCreateFromJPEG ("../".$pathImg.$NomeFile);
$src_im = @ImageCreateFromJPEG ("../imgsite/logo.jpg");
$dst_size = GetImageSize("../".$pathImg.$NomeFile); //800x600
$src_size = GetImageSize("../imgsite/logo.jpg"); //50x50
ImageCopy( $dst_im, $src_im, 150, 150, 0, 0, 50, 50);
I don't get errors but it happens nothing to the original img ($dst_im).
The image logo.jpg is 50x50 and the $dst_img is 800x600.
Thanks for your help,
Evan