12, копирнул то что давно сам использовал, можно и так)
function create_watermark( $main_img_obj, $watermark_img_obj, $alpha_level = 100 )
{
$watermark_width = imagesx($watermark_img_obj);
$watermark_height = imagesy($watermark_img_obj);
$dest_x = 0;
$dest_y = imagesy($main_img_obj) - $watermark_height;
imagecopymerge($main_img_obj, $watermark_img_obj, $dest_x, $dest_y, 0, 0, $watermark_width, $watermark_height, $alpha_level);
return $main_img_obj;
}
$img = imagecreatefromjpeg($pic);
$water = imagecreatefrompng("watermark.png");
$old = create_watermark($img,$water,100);
Изменил: ZaRiN (25.08.2010 / 18:19)