Jump to content

babyskill

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by babyskill

  1. I over write 1 image on 1 image:

    http://thainguyen4u.net/forum/thainguyen.php?src=http://thainguyen4u.net/test/1152709306.jpg

    it oke but :

    http://thainguyen4u.net/forum/thainguyen.php?src=http://thainguyen4u.net/test/test 1/1152709306.jpg

    :) please help me

    <?php  header('content-type: image/jpeg');  $watermark = imagecreatefromgif('copy.gif');  $watermark_width = imagesx($watermark);  $watermark_height = imagesy($watermark);  $image = imagecreatetruecolor($watermark_width, $watermark_height);  $image = imagecreatefromjpeg($_GET['src']);  $size = getimagesize($_GET['src']);  $dest_x = $size[0] - $watermark_width - 5;  $dest_y = $size[1] - $watermark_height - 5;  imagecopymerge($image, $watermark, $dest_x, $dest_y, 0, 0, $watermark_width, $watermark_height, 100);  imagejpeg($image);  imagedestroy($image);  imagedestroy($watermark);  ?>

  2. I want over write a picture on picture?ex: i want insert a picture ( type: PNG ) to a picture ( Type: JPG ).because i will write "Copyright" for picture. :) ( sorry i speak E not good! )

×
×
  • Create New...