
08-24-2006, 12:37 PM
|
|
|
Join Date: Dec 2001
Location: Earth
Posts: 586
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by y2krazy
Error found when uploading an image. Looks like it is referring to the watermarking feature. The image is uploaded fine, despite the error, so maybe it's just not able to apply the watermark?
Lines 175-177:
Code:
$img2 = imagecreatefromjpeg($img);
$tempimage = imagecreatetruecolor(imagesx($img2), imagesy($img2));
imagecopy($tempimage, $img2, 0, 0, 0, 0, imagesx($img2), imagesy($img2));
Line 189:
Code:
$text_color = imagecolorallocate($img2, $red, $green, $blue);
Line 195-196:
Code:
$pos_x=(int)(imagesx($img2) / 2) - ($text_width / 2);
$pos_y= (int)(imagesy($img2) / 2) - ($text_height / 2);
Line 201:
Code:
imagestring($img2, $wmtexts, $pos_x, $pos_y, $wmtext, $text_color);
Line 209-210:
Code:
imagejpeg($img2,$img,100);
imagedestroy($tempimage);
|
that's because your PATH are wrong ...
MAKE SSURE YOU SET THE PATH CORRECTLY !!
|