PHP Code:
	
	
function wasserzeichen($bild1, $name1)
{
  $imgx = imagesx ( $bild1 );
  $imgy = imagesy ( $bild1 );
 
 
  $text   = " Wasserzeichen Text ";
  $penrgb = imageColorAllocate($bild1, 250, 50, 30);
 
  $penx   = 8;
  $peny   = $imgy-20;
   
  ImageString($bild1, 4, $penx, $peny, $text, $penrgb);
 
 
  $penx   = 100;
  $peny   = $imgy-20;
   
  ImageString($bild1, 5, $penx, $peny, $text, $penrgb);
 
  $penx   = 200;
  $peny   = $imgy-40;
   
  ImageString($bild1, 6, $penx, $peny, $text, $penrgb);
 
 
  if( $_FILES['bild1']['type'] == "image/png"  ) imagepng ( $bild1 , $name1);
  if( $_FILES['bild1']['type'] == "image/jpeg" ) imagejpeg ( $bild1 , $name1);
  return($bild1);
} 
$name1    =$_FILES['bild1']['name'];
$size1    =$_FILES['bild1']['size'];
$bild1    =$_FILES['bild1']['tmp_name'];
$bildtyp1 =$_FILES['bild1']['type'];
echo wasserzeichen($bild1, $name1); 
(das Bild wird natütlich vorher übergeben
 )
)
							
						 
          

 
							
						
Comment