
02-21-2005, 07:57 PM
|
|
|
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by triste
Code:
$imx = imagesx($im);
$imy = imagesy($im);
$w = imagesx($watermark);
$y = imagesy($watermark);
$y = $imy - $h;
$x = $imx - $w;
imagecopy($im, $watermark, $x, $y, 0, 0, $w, $h);
from here, i think you get the concept. you use the the size of the watermark, and then subtract/add accordingly from the min/max size of the image being watermarked. (from left, x is 0, from right, x is imagesx())
|
Check your work. $y is being stepped on or set once uselessly.
|